本文整理汇总了PHP中required函数的典型用法代码示例。如果您正苦于以下问题:PHP required函数的具体用法?PHP required怎么用?PHP required使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了required函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: insertCoSellOrder
function insertCoSellOrder($CoAccountNo, $AccountNo, $StockID, $OrderQuantity, $OrderPrice, $Session, $FromTypeID, $Note, $OrderDate, $IsAssigner, $IsGotPaper, $CreatedBy, $AccountNoContra, $CompanyNameContra)
{
$function_name = 'insertCoSellOrder';
$struct = '{urn:' . $this->class_name . '}' . $function_name . 'Struct';
$log[] = sprintf('insertCoSellOrder - CoAccountNo:%s;AccountNo:%s;StockID:%s;OrderQuantity:%s;OrderPrice:%s;Session:%s;FromTypeID:%s;Note:%s;OrderDate:%s;IsAssigner:%s;IsGotPaper:%s;CreatedBy:%s;AccountNoContra:%s;CompanyNameContra:%s;ExecutedTime:%s', $CoAccountNo, $AccountNo, $StockID, $OrderQuantity, $OrderPrice, $Session, $FromTypeID, $Note, $OrderDate, $IsAssigner, $IsGotPaper, $CreatedBy, $AccountNoContra, $CompanyNameContra, date('Y-m-d h:i:s'));
if (authenUser(func_get_args(), $this, $function_name) > 0) {
$log[] = sprintf('authenUser: ERROR_CODE: %s', $this->_ERROR_CODE);
write_my_log_path("insertCoSellOrder", implode("\n --> ", $log), '/home/vhosts/eSMS/htdocs/logs/otc/');
return returnXML(func_get_args(), $this->class_name, $function_name, $this->_ERROR_CODE, $this->items, $this);
}
$log[] = sprintf('authenUser: ERROR_CODE: %s', $this->_ERROR_CODE);
// checking account is active / not
if (!checkAccountIsActive($AccountNo) || !checkAccountIsActive($CoAccountNo)) {
$this->_ERROR_CODE = 30275;
$log[] = sprintf('checkAccountIsActive: ERROR_CODE: %s; AccountNo:%s,%s;CoAccountNo: %s,%s', $this->_ERROR_CODE, $AccountNo, checkAccountIsActive($AccountNo) ? 'TRUE' : 'FALSE', $CoAccountNo, checkAccountIsActive($CoAccountNo) ? 'TRUE' : 'FALSE');
write_my_log_path("insertCoSellOrder", implode("\n --> ", $log), '/home/vhosts/eSMS/htdocs/logs/otc/');
return returnXML(func_get_args(), $this->class_name, $function_name, 30275, $this->items, $this);
}
$log[] = sprintf('checkAccountIsActive: ERROR_CODE: %s; AccountNo:%s,%s;CoAccountNo: %s,%s', $this->_ERROR_CODE, $AccountNo, checkAccountIsActive($AccountNo) ? 'TRUE' : 'FALSE', $CoAccountNo, checkAccountIsActive($CoAccountNo) ? 'TRUE' : 'FALSE');
if (!required($CoAccountNo) || !required($AccountNo) || !required($OrderDate) || !required($StockID) || !required($OrderQuantity) || !required($OrderPrice) || !required($Session) || !unsigned($OrderQuantity) || !unsigned($StockID)) {
if (!required($AccountNo) || !required($CoAccountNo)) {
$this->_ERROR_CODE = 30051;
}
if (!required($OrderDate)) {
$this->_ERROR_CODE = 30052;
}
if (!required($StockID) || !unsigned($StockID)) {
$this->_ERROR_CODE = 30053;
}
if (!required($OrderQuantity) || !unsigned($OrderQuantity)) {
$this->_ERROR_CODE = 30054;
}
if (!required($Session)) {
$this->_ERROR_CODE = 30055;
}
if (!required($OrderPrice)) {
$this->_ERROR_CODE = 30056;
}
$log[] = sprintf('check require: ERROR_CODE: %s', $this->_ERROR_CODE);
} else {
$vip = checkVIPAccount($AccountNo);
// 1: exist 0: not exist
$vipCo = checkVIPAccount($CoAccountNo);
// 1: exist 0: not exist
if (($vip == 1 || $vipCo == 1) && $FromTypeID == 5) {
// web
$this->_ERROR_CODE = 30602;
$log[] = sprintf('Vip on web: Fail; AccountNo: %s;CoAccountNo: %s', $vip == 0 ? 'not vip' : 'vip', $vipCo == 0 ? 'not vip' : 'vip');
write_my_log_path("insertCoSellOrder", implode("\n --> ", $log), '/home/vhosts/eSMS/htdocs/logs/otc/');
return returnXML(func_get_args(), $this->class_name, $function_name, $this->_ERROR_CODE, $this->items, $this);
}
if ((strpos(EOT_PROHIBITION_ACCOUNT, $AccountNo) !== false || strpos(EOT_PROHIBITION_ACCOUNT, $CoAccountNo) !== false) && $FromTypeID == 5) {
$this->_ERROR_CODE = 30602;
$log[] = sprintf('check EOT_PROHIBITION_ACCOUNT: ERROR_CODE: %s;AccountNo:%s,%s;CoAccountNo:%s,%s', $this->_ERROR_CODE, $AccountNo, strpos(EOT_PROHIBITION_ACCOUNT, $AccountNo), $CoAccountNo, strpos(EOT_PROHIBITION_ACCOUNT, $CoAccountNo));
write_my_log_path("insertCoSellOrder", implode("\n --> ", $log), '/home/vhosts/eSMS/htdocs/logs/otc/');
return returnXML(func_get_args(), $this->class_name, $function_name, $this->_ERROR_CODE, $this->items, $this);
}
if (!checkStockPrice($StockID, $OrderPrice, $OrderDate)) {
$this->_ERROR_CODE = 30057;
}
$log[] = sprintf('checkStockPrice: ERROR_CODE: %s', $this->_ERROR_CODE);
$sellingOrderID = '';
$buyingOrderID = '';
try {
if ($this->_ERROR_CODE == 0) {
// -------------------------------------------------------------------------------------- //
// Insert sell order for $CoAccountNo
// -------------------------------------------------------------------------------------- //
$query = sprintf("CALL sp_upcom_insertSellingOrder('%s', %u, %u, %u, %u, '%u', '%s', '%s', '%u', '%u', '%s', '%s', '%s')", $CoAccountNo, $StockID, $OrderQuantity, $OrderPrice, $Session, $FromTypeID, $Note, $OrderDate, $IsAssigner, $IsGotPaper, $CreatedBy, $AccountNoContra, $CompanyNameContra);
$log[] = sprintf('%s', $query);
$mdb = initWriteDB();
$rs = $mdb->extended->getRow($query);
$mdb->disconnect();
if (empty($rs)) {
$this->_ERROR_CODE = 30060;
} else {
$result = $rs['varerror'];
if ($result < 0) {
switch ($result) {
case '-1':
$this->_ERROR_CODE = 19010;
break;
case '-2':
$this->_ERROR_CODE = 19011;
break;
case '-3':
$this->_ERROR_CODE = 19012;
break;
case '-4':
$this->_ERROR_CODE = 19013;
break;
case '-5':
$this->_ERROR_CODE = 19014;
break;
case '-6':
$this->_ERROR_CODE = 19015;
break;
default:
$this->_ERROR_CODE = $result;
}
//.........这里部分代码省略.........
示例2: unLockForVirtualBank
function unLockForVirtualBank($AccountID, $LockID, $BankID, $LockAmount, $UpdatedBy)
{
$function_name = 'unLockForVirtualBank';
$struct = '{urn:' . $this->class_name . '}' . $function_name . 'Struct';
if (authenUser(func_get_args(), $this, $function_name) > 0) {
return returnXML(func_get_args(), $this->class_name, $function_name, $this->_ERROR_CODE, $this->items, $this);
}
if (!required($AccountID) || !required($LockID) || !required($LockAmount) || !required($BankID)) {
if (!required($AccountID)) {
$this->_ERROR_CODE = 34460;
}
if (!required($LockID)) {
$this->_ERROR_CODE = 34461;
}
if (!required($LockAmount)) {
$this->_ERROR_CODE = 34462;
}
if (!required($BankID)) {
$this->_ERROR_CODE = 34463;
}
} else {
$query = sprintf("CALL sp_VirtualBank_UnLock(%u, %u, %u, %f, '%s')", $AccountID, $LockID, $BankID, $LockAmount, $UpdatedBy);
$rs = $this->_MDB2_WRITE->extended->getRow($query);
if (empty($rs)) {
$this->_ERROR_CODE = 34464;
} else {
$result = $rs['varerror'];
if ($result < 0) {
switch ($result) {
case '-1':
$this->_ERROR_CODE = 34465;
break;
case '-2':
$this->_ERROR_CODE = 34466;
break;
case '-3':
$this->_ERROR_CODE = 34467;
break;
case '-4':
$this->_ERROR_CODE = 34468;
break;
}
}
}
}
return returnXML(func_get_args(), $this->class_name, $function_name, $this->_ERROR_CODE, $this->items, $this);
}
示例3: ticket_form
function ticket_form($action)
{
global $conn;
$users = Session::get_users_to_assign($conn);
if (Session::is_pro()) {
$entities = Acl::get_entities_to_assign($conn);
}
?>
<tr class="tticket">
<td colspan="2" class="nobborder"> </td>
</tr>
<tr class="tticket">
<th><label for="in_charge"><?php
echo _('In Charge:') . required();
?>
</label></th>
<td class="nobborder left">
<table cellspacing="0" cellpadding="0" class="transparent">
<tr>
<td class="nobborder">
<label for="transferred_user"><?php
echo _('User:');
?>
</label>
</td>
<td class="nobborder left">
<select onfocus='set_focus(this);' name="transferred_user" id="transferred_user" class="vfield" onchange="switch_user('user');return false;">
<?php
$num_users = 0;
foreach ($users as $k => $v) {
$login = $v->get_login();
$options .= "<option value='{$login}'" . ($action == $login ? " selected" : "") . ">{$login}</option>\n";
$num_users++;
}
if ($num_users == 0) {
echo "<option value='' style='text-align:center !important;'>- " . _("No users found") . "- </option>";
} else {
echo "<option value='' style='text-align:center !important;' selected='selected'>- " . _("Select one user") . " -</option>\n";
echo $options;
}
?>
</select>
</td>
<?php
if (!empty($entities)) {
?>
<td class="nobborder" nowrap='nowrap'>
<label for="transferred_entity" style='margin-right: 3px;'><?php
echo _('OR') . ' ' . _('Entity:');
?>
</label>
</td>
<td class="nobborder">
<select onfocus='set_focus(this);' name="transferred_entity" id="transferred_entity" class="vfield" onchange="switch_user('entity');return false;">
<?php
if (count($entities) == 0) {
echo "<option value='' style='text-align:center !important;'>- " . _('No entities found') . " -</option>";
} else {
echo "<option value='' style='text-align:center !important;'>- " . _('Select one entity') . " -</option>\n";
}
foreach ($entities as $k => $v) {
echo "<option value='{$k}'" . ($action == $k ? " selected" : "") . ">{$v}</option>";
}
?>
</select>
</td>
<?php
}
?>
</tr>
</table>
</td>
</tr>
<?php
}
示例4: foreach
foreach ($locations as $lc) {
echo "<option value='" . $lc->get_id() . "'>" . $lc->get_name() . "</option>";
}
?>
</select>
</td>
</tr>
<?php
} else {
if (Session::show_entities()) {
$e_url = Menu::get_menu_url('../acl/entities.php', 'configuration', 'administration', 'users', 'structure');
?>
<tr>
<th>
<label for='entities'><?php
echo _('Context') . required();
?>
</label><br/>
</th>
<td class="nobborder">
<table id='t_entities' class="transparent">
<tr>
<td class="noborder left">
<div id="tree"></div>
</td>
</tr>
<?php
if ($is_ossim_sensor) {
$entity_id = $entity_name = "";
if (is_array($sensor_entities)) {
示例5: confirmInternalTransfer
function confirmInternalTransfer($ID, $UpdatedBy, $FromAccountNo, $ToAccountNo, $Amount)
{
$function_name = 'confirmInternalTransfer';
$struct = '{urn:' . $this->class_name . '}' . $function_name . 'Struct';
if (authenUser(func_get_args(), $this, $function_name) > 0) {
return returnXML(func_get_args(), $this->class_name, $function_name, $this->_ERROR_CODE, $this->items, $this);
}
if (!required($ID) || !unsigned($ID) || !required($FromAccountNo) || !required($ToAccountNo) || !required($Amount) || !unsigned($Amount)) {
if (!required($ID) || !unsigned($ID)) {
$this->_ERROR_CODE = 13175;
}
if (!required($FromAccountNo)) {
$this->_ERROR_CODE = 13176;
}
if (!required($ToAccountNo)) {
$this->_ERROR_CODE = 13177;
}
if (!required($Amount) || !unsigned($Amount)) {
$this->_ERROR_CODE = 13178;
}
} else {
$query = sprintf("CALL sp_VirtualBank_confirmInternalTransfer(%u, '%s' )", $ID, $UpdatedBy);
$rs = $this->_MDB2_WRITE->extended->getRow($query);
if (empty($rs)) {
$this->_ERROR_CODE = 13179;
} else {
$result = $rs['varerror'];
$content = date("d/m/Y H:i:s") . "\tChuyen khoan: ID => {$ID}, FromAccountNo => {$FromAccountNo}, ToAccountNo => {$ToAccountNo}, Amount => {$Amount}, UpdatedBy => {$UpdatedBy} --> {$result}";
write_log($function, $content, VIRTUAL_BANK_LOG_FILE_PATH);
if ($result < 0) {
switch ($result) {
case '-1':
$this->_ERROR_CODE = 13180;
break;
case '-2':
$this->_ERROR_CODE = 13181;
break;
case '-3':
$this->_ERROR_CODE = 13182;
break;
case '-4':
$this->_ERROR_CODE = 13183;
break;
case '-5':
$this->_ERROR_CODE = 13184;
break;
case '-6':
$this->_ERROR_CODE = 13185;
break;
default:
$this->_ERROR_CODE = $result;
}
//switch
} else {
//if
$soap =& new Bravo();
$date = date("Y-m-d");
$withdrawValue = array("TradingDate" => $date, 'TransactionType' => INTERNAL_TRANSFER, "AccountNo" => $FromAccountNo, "Amount" => $Amount, "Fee" => 0, "Bank" => VIRTUAL_BANK_BANKCODE, "Note" => "Chuyen khoan");
$ret = $soap->withdraw($withdrawValue);
if ($ret['table0']['Result'] != 1) {
// success
switch ($ret['table0']['Result']) {
case '-2':
$this->_ERROR_CODE = 23002;
break;
case '-1':
$this->_ERROR_CODE = 23003;
break;
case '-13':
$this->_ERROR_CODE = 23006;
break;
case '-15':
$this->_ERROR_CODE = 23005;
break;
case '-16':
$this->_ERROR_CODE = 23004;
break;
default:
$this->_ERROR_CODE = 'Bravo' . $ret['table0']['Result'];
}
//switch
} else {
$arrDeposit = array("TradingDate" => $date, "TransactionType" => INTERNAL_TRANSFER, "AccountNo" => $ToAccountNo, "Amount" => $Amount, "Fee" => 0, "Bank" => VIRTUAL_BANK_BANKCODE, "Note" => "Chuyen khoan");
$bravo_result = $bravo_service->deposit($arrDeposit);
if ($bravo_result['table0']['Result'] != 1) {
switch ($result) {
case '-1':
$this->_ERROR_CODE = 23003;
break;
case '-2':
$this->_ERROR_CODE = 23002;
break;
case '-13':
$this->_ERROR_CODE = 23006;
break;
case '-15':
$this->_ERROR_CODE = 23005;
break;
case '-16':
$this->_ERROR_CODE = 23004;
//.........这里部分代码省略.........
示例6: form_tag
echo form_tag('user/editAccount', array('class' => 'form'));
?>
<div class="row">
<?php
echo label_for('first_name', __('First Name') . required());
?>
<?php
echo input_tag('first_name', $sf_params->get('first_name'));
?>
<?php
echo form_error('first_name');
?>
</div>
<div class="row">
<?php
echo label_for('last_name', __('Last Name') . required());
?>
<?php
echo input_tag('last_name', $sf_params->get('last_name'));
?>
<?php
echo form_error('last_name');
?>
</div>
<div class="row">
<?php
echo label_for('gender', __('Gender'));
?>
<?php
echo select_tag('gender', options_for_select(array(null, 'M' => __('Male'), 'F' => __('Female')), $sf_params->get('gender')));
?>
示例7: _
echo _('Name') . required();
?>
</label>
</th>
<td class="left">
<input type="text" class='vfield' name="ri_name" id="ri_name" value="<?php
echo $name;
?>
"/>
</td>
</tr>
<tr>
<th>
<label for='status'><?php
echo _('Status') . required();
?>
</label>
</th>
<td class="left">
<?php
$checked = $status == 1 ? " checked='checked' " : "";
?>
<input type="checkbox" value="1" <?php
echo $checked;
?>
name="status"/>
</td>
</tr>
<tr>
示例8: elseif
</td>
</tr>
<?php
} elseif ($s_type == 'wmi') {
preg_match('/wmipass:(.*)/', $params, $found);
if ($found[1] != '') {
$params = preg_replace('/wmipass:(.*)/', '', $params);
$_SESSION['wmi_pass'] = $found[1];
$params = $params . 'wmipass:' . preg_replace('/./', '*', $found[1]);
}
$title = _('Format example') . ': wmihost:<i>ip_address</i>;wmiuser:<i>user</i>;wmipass:<i>pass</i>';
?>
<tr>
<th>
<label for="task_params"><?php
echo _('Credentials') . required();
?>
</label>
</th>
<td class="left">
<input type='text' name='task_params' title="<?php
echo $title;
?>
" id='task_params' class='vfield info' value="<?php
echo $params;
?>
"/>
</td>
</tr>
<?php
}
示例9: _
<h2>
<div class='finished'>
<div class='div_left'><?php
echo _("INSTALL ON");
?>
</div>
<div class='div_right'><img src="../pixmaps/tables/warning.png" class="imgtargets img_rotate" /></div>
<div class='div_right'><img src="../pixmaps/trash.png" class="img_delc img_rotate" /></div>
</div>
</h2>
<div id="cond-7">
<table class='tab_table'>
<tr>
<th><?php
echo _("Install on") . required();
?>
<br/>
<span class='size10'><a href="../server/newserverform.php" class="greybox"><?php
echo _("Insert new server?");
?>
</a></span><br/>
</th>
<td class="left nobborder" valign="top" id="targets">
</td>
</tr>
</table>
</div>
</li>
示例10: lang
$this->load->view('account/_account_header');
?>
<div>
<h3><?php
echo lang('email_settings');
?>
</h3>
<?php
echo form_open('C=myaccount' . AMP . 'M=update_email', '', $form_hidden);
?>
<p>
<?php
echo form_label(required() . lang('email'), 'email');
?>
<?php
echo form_input(array('id' => 'email', 'name' => 'email', 'class' => 'field', 'value' => $email, 'maxlength' => 72));
?>
</p>
<p>
<em class="notice">
<?php
if ($this->session->userdata('group_id') == 1) {
?>
<?php
echo lang('password_auth');
?>
示例11: CancelSellAdvance_DAB
/**
* Function CancelSellAdvance_DAB : CancelSellAdvance_DAB
* Input : $DABBankAccount, $AccountNo, $ContractNo
* OutPut : error code. Return 0 if success else return error code (number >0).
*/
function CancelSellAdvance_DAB($DABBankAccount, $AccountNo, $ContractNo, $CancelDate)
{
try {
$class_name = $this->class_name;
$function_name = 'CancelSellAdvance_DAB';
if (authenUser(func_get_args(), $this, $function_name) > 0) {
return returnXML(func_get_args(), $this->class_name, $function_name, $this->_ERROR_CODE, $this->items, $this);
}
if (!required($DABBankAccount)) {
$this->_ERROR_CODE = 20066;
} else {
if (!required($AccountNo)) {
$this->_ERROR_CODE = 20067;
} else {
if (!required($ContractNo)) {
$this->_ERROR_CODE = 20068;
}
}
}
if ($this->_ERROR_CODE == 0) {
$dab =& new CDAB();
$dab_rs = $dab->cancelsellAdvance($DABBankAccount, $AccountNo, $ContractNo);
switch ($dab_rs) {
case '0':
//sucess
$this->_ERROR_CODE = 0;
break;
case '-1':
//unauthenticate partner
$this->_ERROR_CODE = 20053;
break;
case '-2':
//Iinvalid parameters
$this->_ERROR_CODE = 20054;
break;
case '-3':
//no contract found or invalid contract
$this->_ERROR_CODE = 20064;
break;
case '-1':
//cancel sell unsuccessful
$this->_ERROR_CODE = 20065;
break;
case '99':
//unknown error
$this->_ERROR_CODE = 20056;
break;
default:
//deafulr error
$this->_ERROR_CODE = 20057;
break;
}
/*if($this->_ERROR_CODE==0)
{
$query = sprintf("CALL sp_DeleteAdvancePaper_DAB ('%s','%s','%s')", $ContractNo, $CancelDate, $CreatedBy);
$this->_MDB2_WRITE->disconnect();
$this->_MDB2_WRITE->connect();
$result = $this->_MDB2_WRITE->extended->getAll($query);
//Can not delete
if(empty($result) || is_object($result)){
$this->_ERROR_CODE = 20061;
write_my_log_path('ErrorCallStore',$query.' '.$result->backtrace[0]['args'][4],ADVANCE_PATH);
}
else{
if(isset($result[0]['varerror']))
{
//Invalid AdvancePaper
if($result[0]['varerror'] == -1){
$this->_ERROR_CODE = 20001;
}else if($result[0]['varerror'] == -3){
//error when call sp_insertMoneyHistory
$this->_ERROR_CODE = 20062;
}else if($result[0]['varerror'] == -9999){
$this->_ERROR_CODE = 20063;
}else if($result[0]['varerror']<0){
$this->_ERROR_CODE = 22134;
write_my_log_path($function_name,$query.' VarError '.$result[0]['varerror'],ADVANCE_PATH);
}
}
}
}
*/
}
} catch (Exception $e) {
write_my_log_path('PHP-Exception', $function_name . ' Caught exception: ' . $e->getMessage() . ' ' . date('Y-m-d h:i:s'), DEBUG_PATH);
$this->_ERROR_CODE = 23022;
}
return returnXML(func_get_args(), $this->class_name, $function_name, $this->_ERROR_CODE, $this->items, $this);
}
示例12: GET
&withoutmenu=<?php
echo GET('withoutmenu');
?>
" method="POST" style="margin:0px" onsubmit="return chk()">
<table align="center" width="90%" cellspacing="0" class="noborder">
<tr>
<td width="10%" height="34" class="plfieldhdr pall" nowrap><?php
echo _("Group ID");
?>
</td>
<td width="22%" height="34" class="plfieldhdr ptop pbottom pright"><?php
echo _("Group Name") . required();
?>
</td>
<td width="63%" height="34" class="plfieldhdr ptop pbottom pright"><?php
echo _("Description") . required();
?>
</td>
</tr>
<tr>
<td class="noborder pleft"><b><?php
echo $group_id;
?>
</b> </td>
<td class="noborder">
<input type="text" name="name" id="pname" value="<?php
echo $name;
?>
" size="30">
</td>
<td class="noborder pright">
示例13: InsertExtraCollectDisbursement
function InsertExtraCollectDisbursement($AccountID, $Amount, $BankID, $TradingDate, $Note, $TranTypeID, $CreatedBy)
{
$function_name = 'InsertExtraCollectDisbursement';
$struct = '{urn:' . $this->class_name . '}' . $function_name . 'Struct';
if (authenUser(func_get_args(), $this, $function_name) > 0) {
return returnXML(func_get_args(), $this->class_name, $function_name, $this->_ERROR_CODE, $this->items, $this);
}
if (!required($AccountID) || !unsigned($AccountID) || !required($Amount) || !unsigned($Amount)) {
if (!required($AccountID) || !unsigned($AccountID)) {
$this->_ERROR_CODE = 31445;
}
if (!required($Amount) || !unsigned($Amount)) {
$this->_ERROR_CODE = 31446;
}
} else {
$query = sprintf("CALL sp_ExtraCollectDisbursement_insert( %u, %f, '%s', '%s', '%s', '%s', '%s')", $AccountID, $Amount, $BankID, $TradingDate, $Note, $TranTypeID, $CreatedBy);
$rs = $this->_MDB2_WRITE->extended->getRow($query);
if (empty($rs)) {
$this->_ERROR_CODE = 31447;
} else {
$result = $rs['varerror'];
if ($result < 0) {
switch ($result) {
case '-1':
$this->_ERROR_CODE = 21115;
break;
}
} else {
$this->items[0] = new SOAP_Value('item', $struct, array("ID" => new SOAP_Value("ID", "string", $result)));
}
}
}
return returnXML(func_get_args(), $this->class_name, $function_name, $this->_ERROR_CODE, $this->items, $this);
}
示例14: _
<td class="left">
<input type="password" id="pass1" name="pass1" value="<?php
echo $pass1;
?>
" size="30" />
</td>
</tr>
<tr>
<td class="nobborder" style="padding:0px"></td>
<td class="nobborder" style="padding:0px"><div id="pass1_text"></div><div id="pass1_bar"></div></td>
</tr>
<tr>
<th> <?php
echo _("Re-enter password") . required();
?>
</th>
<td class="left">
<input type="password" id="pass2" name="pass2" value="<?php
echo $pass2;
?>
" size="30" />
</td>
</tr>
<tr>
<th> <?php
echo gettext("User language");
?>
</th>
示例15: label_for
?>
<div class="row">
<?php
echo label_for('username', __('Username') . required());
?>
<?php
echo input_tag('username', $sf_params->get('username'));
?>
<br />
<?php
echo form_error('username', 'class=error');
?>
</div>
<div class="row">
<?php
echo label_for('password', __('Password') . required());
?>
<?php
echo input_password_tag('password');
?>
<br />
<?php
echo form_error('password', 'class=error');
?>
</div>
<div class="row">
<?php
echo label_for('remember', __('Remember me?'));
?>
<?php