本文整理汇总了PHP中_is_not_null_函数的典型用法代码示例。如果您正苦于以下问题:PHP _is_not_null_函数的具体用法?PHP _is_not_null_怎么用?PHP _is_not_null_使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了_is_not_null_函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: _save_data2_
function _save_data2_($var_pesanno)
{
if (_is_not_null_($var_pesanno)) {
if ($this->_is_primary_exist_($var_pesanno)) {
_set_query_("UPDATE " . def_table_inbox . " SET statusyn='" . def_yes . "' WHERE pesanno='" . _set_input_string_($var_pesanno) . "'");
}
}
}
示例2: _set_double_
function _set_double_($var_value, $var_precision)
{
if (!_is_not_null_($var_value)) {
$var_value = 0;
}
if (!is_numeric($var_value)) {
$var_value = 0;
}
$var_value = number_format($var_value, $var_precision, ".", "");
return $var_value;
}
示例3: _delete_data_
function _delete_data_($var_contactusid)
{
if (!_is_not_null_($var_contactusid)) {
return false;
}
if ($this->_is_primary_exist_($var_contactusid)) {
return _set_query_("DELETE FROM " . def_table_contactus . " WHERE contactusid='" . _set_input_string_($var_contactusid) . "'");
} else {
return false;
}
}
示例4: _delete_data_
function _delete_data_($var_handphoneno)
{
if (!_is_not_null_($var_handphoneno)) {
return false;
}
if ($this->_is_primary_exist_($var_handphoneno)) {
return _set_query_("DELETE FROM " . def_table_handphone . " WHERE handphoneno=" . _set_input_string_($var_handphoneno));
} else {
return false;
}
}
示例5: _save_data_
function _save_data_($var_pesan, $var_nohp, $var_tanggal = "NOW()", $var_pesanno = "")
{
if (_is_not_null_($var_pesanno)) {
if (_is_primary_exist_($var_pesanno)) {
_set_query_("UPDATE " . def_table_outbox . " SET pesan='" . _set_input_string_($var_pesan) . "', nohp='" . _set_input_string_($var_nohp) . "', tanggal=" . $var_tanggal . " WHERE pesanno='" . _set_input_string_($var_pesanno) . "'");
} else {
_set_query_("INSERT INTO " . def_table_outbox . " VALUES ('', '" . _set_input_string_($var_pesan) . "', '" . _set_input_string_($var_nohp) . "', " . $var_tanggal . ")");
}
} else {
_set_query_("INSERT INTO " . def_table_outbox . " VALUES ('', '" . _set_input_string_($var_pesan) . "', '" . _set_input_string_($var_nohp) . "', " . $var_tanggal . ")");
}
}
示例6: _delete_data_
function _delete_data_($var_jenisid)
{
if (!_is_not_null_($var_jenisid)) {
return false;
}
if ($this->_is_primary_exist_($var_jenisid)) {
_set_query_("DELETE FROM " . def_table_jenis . " WHERE jenisid='" . _set_input_string_($var_jenisid) . "'");
$var_query_link = _set_query_("SELECT menuid FROM " . def_table_menu . " WHERE jenisid='" . _set_input_string_($var_jenisid) . "'");
while ($var_array_menu = _set_fetch_array_($var_query_link)) {
_set_query_("DELETE FROM " . def_table_pesan_detil . " WHERE menuid='" . _set_input_string_($var_array_menu['menuid']) . "'");
_set_query_("DELETE FROM " . def_table_keranjang . " WHERE menuid='" . _set_input_string_($var_array_menu['menuid']) . "'");
_set_query_("DELETE FROM " . def_table_daftarharga . " WHERE menuid='" . _set_input_string_($var_array_menu['menuid']) . "'");
}
_set_query_("DELETE FROM " . def_table_menu . " WHERE jenisid='" . _set_input_string_($var_jenisid) . "'");
} else {
return false;
}
}
示例7: _class_menu_
</td>
</tr>
</table>
<?php
} else {
?>
<?php
require_once def_directory_classes_master . "class_menu.php";
if (isset($HTTP_GET_VARS["restoranid"])) {
$var_class_menu = new _class_menu_("", "", _set_variable_http_("restoranid"), "", def_yes);
} else {
$var_class_menu = new _class_menu_("", "", "", "", def_yes);
}
if (_is_not_null_($var_class_menu->var_array_menu)) {
$var_counter = 1;
?>
<table border="0" width="100%" cellpadding="3" cellspacing="3">
<?php
while (list($var_key, $var_value) = each($var_class_menu->var_array_menu)) {
$var_counter++;
?>
<?php
if ($var_counter % 2 == 0) {
?>
<tr>
<?php
}
?>
<td align="center">
示例8: _set_pulldown_date_
function _set_pulldown_date_($var_pulldown_id, $var_value = "", $var_parameter = "", $var_type = "day", $var_reinsert_value = true)
{
global $HTTP_GET_VARS, $HTTP_POST_VARS;
$var_pulldown_value = '<select name="' . $var_pulldown_id . '"';
if (_is_not_null_($var_parameter)) {
$var_pulldown_value .= ' ' . $var_parameter;
}
$var_pulldown_value .= '>';
if ($var_reinsert_value == true && (isset($HTTP_GET_VARS[$var_pulldown_id]) && is_string($HTTP_GET_VARS[$var_pulldown_id]) || isset($HTTP_POST_VARS[$var_pulldown_id]) && is_string($HTTP_POST_VARS[$var_pulldown_id]))) {
if (isset($HTTP_GET_VARS[$var_pulldown_id]) && is_string($HTTP_GET_VARS[$var_pulldown_id])) {
$var_value = stripslashes($HTTP_GET_VARS[$var_pulldown_id]);
} elseif (isset($HTTP_POST_VARS[$var_pulldown_id]) && is_string($HTTP_POST_VARS[$var_pulldown_id])) {
$var_value = stripslashes($HTTP_POST_VARS[$var_pulldown_id]);
}
} else {
date_default_timezone_set('Asia/Krasnoyarsk');
if ($var_type == "day") {
$var_value = date("d");
} elseif ($var_type == "month") {
$var_value = date("m");
} elseif ($var_type == "year") {
$var_value = date("Y");
}
}
$var_start = 1;
if ($var_type == "day") {
$var_size = 31;
} else {
if ($var_type == "month") {
$var_size = 12;
} else {
if ($var_type == "year") {
$var_size = 2100;
$var_start = 2008;
} else {
$var_size = 0;
}
}
}
for ($var_counter = $var_start; $var_counter <= $var_size; $var_counter++) {
if ($var_type != "year") {
$var_pulldown_value .= '<option value="' . _set_padding_($var_counter, 2, "0", false) . '"';
} else {
$var_pulldown_value .= '<option value="' . $var_counter . '"';
}
if ($var_type != "year") {
if ($var_value == _set_padding_($var_counter, 2, "0", false)) {
$var_pulldown_value .= " SELECTED";
}
} else {
if ($var_value == $var_counter) {
$var_pulldown_value .= " SELECTED";
}
}
if ($var_type != "year") {
$var_pulldown_value .= '>' . _set_padding_($var_counter, 2, "0", false) . '</option>';
} else {
$var_pulldown_value .= '>' . $var_counter . '</option>';
}
}
$var_pulldown_value .= '</select>';
return $var_pulldown_value;
}
示例9: _set_session_register_
<?php
require_once def_directory_modules . "pesan/" . "module_update.php";
} else {
$session_error = "Harap Mengikuti Prosedur";
_set_session_register_("session_error");
require_once def_directory_modules . "pesan/" . "module_error.php";
}
?>
</td>
<?php
}
} else {
if (isset($HTTP_GET_VARS["process"]) && $HTTP_GET_VARS["process"] == "delete") {
if (isset($HTTP_GET_VARS["processid"])) {
$var_notransaksi = _set_variable_http_("processid");
if (_is_not_null_($var_notransaksi)) {
require_once "../" . def_directory_classes_transaksi . "class_pesan.php";
$var_class_pesan = new _class_pesan_();
if (!$var_class_pesan->_is_primary_exist_header_($var_notransaksi)) {
?>
<td valign="top"><?php
if (isset($HTTP_GET_VARS["action"])) {
require_once def_directory_modules . "pesan/" . "module_delete.php";
} else {
$session_error = "Harap Mengikuti Prosedur";
_set_session_register_("session_error");
require_once def_directory_modules . "pesan/" . "module_error.php";
}
?>
</td>
<?php
示例10: _class_setting_
<?php
require_once "includes/application_startup.php";
require_once "../" . def_directory_classes_master . "class_setting.php";
$var_class_setting = new _class_setting_();
if (_is_session_registered_("session_userid")) {
if (isset($HTTP_GET_VARS["process"]) && $HTTP_GET_VARS["process"] == "") {
$var_handphoneno = _set_variable_http_("slt_handphoneno", false);
$var_autorefresh = _set_variable_http_("txt_autorefresh", false);
$var_autoreply = _set_variable_http_("chk_autoreply", false);
if (_is_not_null_($var_handphoneno)) {
if (_is_not_null_($var_autorefresh)) {
$var_class_setting->_set_data_("connectivity", $var_handphoneno);
$var_class_setting->_set_data_("auto refresh", $var_autorefresh);
$var_class_setting->_set_data_("auto reply", $var_autoreply);
$var_class_setting->_set_gammurc_($var_handphoneno);
$session_success = "Setting Sudah Disimpan";
_set_session_register_("session_success");
} else {
$session_error = "Auto Refresh Harap Diisi";
_set_session_register_("session_error");
}
} else {
$session_error = "Konektifitas Harap Dipilih";
_set_session_register_("session_error");
}
}
} else {
_set_location_(_set_link_(def_application_login));
}
?>
示例11: _set_session_register_
if (isset($HTTP_GET_VARS["action"]) && $HTTP_GET_VARS["action"] == "true") {
require_once def_directory_modules . "jenis/" . "module_update.php";
} else {
$session_error = "Harap Mengikuti Prosedur";
_set_session_register_("session_error");
require_once def_directory_modules . "jenis/" . "module_error.php";
}
?>
</td>
<?php
}
} else {
if (isset($HTTP_GET_VARS["process"]) && $HTTP_GET_VARS["process"] == "delete") {
if (isset($HTTP_GET_VARS["processid"])) {
$var_jenisid = _set_variable_http_("processid");
if (_is_not_null_($var_jenisid)) {
require_once "../" . def_directory_classes_master . "class_jenis.php";
$var_class_jenis = new _class_jenis_();
if (!$var_class_jenis->_is_primary_exist_($var_jenisid)) {
?>
<td valign="top"><?php
if (isset($HTTP_GET_VARS["action"])) {
require_once def_directory_modules . "jenis/" . "module_delete.php";
} else {
$session_error = "Harap Mengikuti Prosedur";
_set_session_register_("session_error");
require_once def_directory_modules . "jenis/" . "module_error.php";
}
?>
</td>
<?php
示例12: _delete_data_
function _delete_data_($var_userid)
{
if (!_is_not_null_($var_userid)) {
return false;
}
if ($this->_is_primary_exist_($var_userid)) {
_set_query_("DELETE FROM " . def_table_pemakai . " WHERE userid='" . _set_input_string_($var_userid) . "'");
_set_query_("DELETE FROM " . def_table_voucher . " WHERE userid='" . _set_input_string_($var_userid) . "'");
$var_query_link = _set_query_("SELECT notransaksi FROM " . def_table_pesan_header . " WHERE userid='" . _set_input_string_($var_userid) . "'");
while ($var_array_pesan_header = _set_fetch_array_($var_query_link)) {
_set_query_("DELETE FROM " . def_table_pesan_detil . " WHERE notransaksi='" . _set_input_string_($var_array_pesan_header['notransaksi']) . "'");
}
_set_query_("DELETE FROM " . def_table_pesan_header . " WHERE userid='" . _set_input_string_($var_userid) . "'");
_set_query_("DELETE FROM " . def_table_output . " WHERE userid='" . _set_input_string_($var_userid) . "'");
_set_query_("DELETE FROM " . def_table_login . " WHERE userid='" . _set_input_string_($var_userid) . "'");
_set_query_("DELETE FROM " . def_table_keranjang . " WHERE userid='" . _set_input_string_($var_userid) . "'");
} else {
return false;
}
}
示例13: _is_admin_
function _is_admin_($var_userid)
{
if (_is_not_null_($var_userid)) {
if ($var_userid == def_administrator) {
return true;
} else {
return false;
}
} else {
return false;
}
}
示例14: _set_variable_http_
<?php
require_once "includes/application_startup.php";
if (isset($HTTP_GET_VARS["process"]) && $HTTP_GET_VARS["process"] == "pesan") {
$var_email = _set_variable_http_("txt_email", false);
$var_nama = _set_variable_http_("txt_nama", false);
$var_pesan = _set_variable_http_("txt_pesan", false);
if (_is_not_null_($var_email)) {
if (_is_not_null_($var_nama)) {
if (_is_not_null_($var_pesan)) {
require_once def_directory_classes_master . "class_contactus.php";
$var_class_contactus = new _class_contactus_();
$var_class_contactus->_save_data_($var_email, $var_nama, $var_pesan);
$session_success = "Pesan anda sudah disimpan. Kami akan memproses pesan anda. Terima Kasih";
_set_session_register_("session_success");
} else {
$session_error = "Pesan Harap Diisi";
_set_session_register_("session_error");
}
} else {
$session_error = "Nama Harap Diisi";
_set_session_register_("session_error");
}
} else {
$session_error = "Email Harap Diisi";
_set_session_register_("session_error");
}
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
示例15: _set_session_register_
_set_session_register_("session_error");
}
} else {
$session_error = "Harap Mengikuti Prosedur";
_set_session_register_("session_error");
}
}
} else {
$session_error = "Harap Mengikuti Prosedur";
_set_session_register_("session_error");
}
} elseif ($HTTP_GET_VARS["process"] == "handphone") {
require_once "../" . def_directory_classes . "class_gammu.php";
$var_class_gammu = new _class_gammu_("..\\gammu\\gammu.exe");
$var_class_gammu->_gammu_outbox_(&$var_respon);
if (_is_not_null_($var_respon)) {
$session_error = $var_respon;
_set_session_register_("session_error");
}
} elseif ($HTTP_GET_VARS["process"] == "deleteall") {
if (isset($HTTP_GET_VARS["action"])) {
require_once "../" . def_directory_classes_master . "class_outbox.php";
$var_class_outbox = new _class_outbox_();
$var_class_outbox->_delete_all_();
$session_success = "Semua Data Sudah Dihapus";
_set_session_register_("session_success");
_set_location_(_set_link_(def_application_outbox));
}
}
}
if (isset($var_class_outbox) && is_object($var_class_outbox)) {