当前位置: 首页>>代码示例>>PHP>>正文


PHP simbio_form_table_AJAX::addHidden方法代码示例

本文整理汇总了PHP中simbio_form_table_AJAX::addHidden方法的典型用法代码示例。如果您正苦于以下问题:PHP simbio_form_table_AJAX::addHidden方法的具体用法?PHP simbio_form_table_AJAX::addHidden怎么用?PHP simbio_form_table_AJAX::addHidden使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在simbio_form_table_AJAX的用法示例。


在下文中一共展示了simbio_form_table_AJAX::addHidden方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: sprintf

 $form = new simbio_form_table_AJAX('mainForm', $_SERVER['PHP_SELF'] . '?' . $_SERVER['QUERY_STRING'], 'post');
 $form->submit_button_attr = 'name="saveData" value="' . __('Save') . '" class="button"';
 // form table attributes
 $form->table_attr = 'align="center" id="dataList" cellpadding="5" cellspacing="0"';
 $form->table_header_attr = 'class="alterCell" style="font-weight: bold;"';
 $form->table_content_attr = 'class="alterCell2"';
 $visibility = 'makeVisible';
 // edit mode flag set
 if ($rec_q->num_rows > 0) {
     $form->edit_mode = true;
     // record ID for delete process
     if (!$in_pop_up) {
         // form record id
         $form->record_id = $itemID;
     } else {
         $form->addHidden('updateRecordID', $itemID);
         $form->addHidden('itemCollID', $_POST['itemCollID']);
         $form->back_button = false;
     }
     // form record title
     $form->record_title = $rec_d['title'];
     // submit button attribute
     $form->submit_button_attr = 'name="saveData" value="' . __('Update') . '" class="button"';
     // element visibility class toogle
     $visibility = 'makeHidden';
     // custom field data query
     $_sql_rec_cust_q = sprintf('SELECT * FROM biblio_custom WHERE biblio_id=%d', $itemID);
     $rec_cust_q = $dbs->query($_sql_rec_cust_q);
     $rec_cust_d = $rec_cust_q->fetch_assoc();
 }
 // include custom fields file
开发者ID:purwoko,项目名称:slims3-stable15-jquery,代码行数:31,代码来源:index.php

示例2: strtoupper

} else {
    ?>
    <fieldset class="menuBox">
    <div class="menuBoxInner errorIcon">
    <strong style="color: #f00;"><?php 
    echo strtoupper(__('Finish Stock Take'));
    ?>
<hr />
    <?php 
    echo __('Are you sure to end current stock take proccess? Once it finished there is no way you can rollback this stock take');
    ?>
    </strong>
    </div>
    </fieldset>
<?php 
    // create new instance
    $form = new simbio_form_table_AJAX('stockTakeForm', $_SERVER['PHP_SELF'], 'post');
    $form->submit_button_attr = 'value="' . __('Finish Stock Take') . '" class="button" style="color: #f00; border-color: #f00;"';
    // form table attributes
    $form->table_attr = 'align="center" id="dataList" cellpadding="5" cellspacing="0"';
    $form->table_header_attr = 'class="alterCell" style="font-weight: bold;"';
    $form->table_content_attr = 'class="alterCell2"';
    /* Form Element(s) */
    // purge lost item
    $purge_options[] = array('1', __('Yes'));
    $form->addCheckBox('purge', __('Purge Lost Item'), $purge_options);
    // hidden item
    $form->addHidden('confirmFinish', 'true');
    // print out the object
    echo $form->printOut();
}
开发者ID:ridorido,项目名称:s3st15_matoa,代码行数:31,代码来源:finish.php

示例3:

$page_title = 'Add New Pattern';
ob_start();
// create form instance
$form = new simbio_form_table_AJAX('mainFormPattern', $_SERVER['PHP_SELF'], 'post');
$form->submit_button_attr = 'name="saveData" value="' . __('Save') . '" class="btn btn-primary"';
// form table attributes
$form->table_attr = 'align="center" id="dataList" cellpadding="5" cellspacing="0"';
$form->table_header_attr = 'class="alterCell" style="font-weight: bold;"';
$form->table_content_attr = 'class="alterCell2"';
// Prefix code pattern
$form->addTextField('text', 'prefix', __('Prefix'), 'P', 'style="width: 60%;"');
// Suffix code pattern
$form->addTextField('text', 'suffix', __('Suffix'), 'S', 'style="width: 60%;"');
// length serial number
$form->addTextField('text', 'length_serial', __('Length serial number'), '5', 'style="width: 60%;"');
$form->addHidden('saveData', 'save');
// print out the object
echo '<div style="padding:20px;">';
echo $form->printOut();
// preview patternt
echo '<hr><h4>Preview: <b id="preview">P00000S</b></h4><hr>';
echo '</div>';
?>
<script type="text/javascript">
  $('#mainFormPattern').keyup(function (e) {
    e.preventDefault();
    var prefix, suffix, lengthSerial, zeros;
    prefix = $('#prefix').val();
    suffix = $('#suffix').val();
    lengthSerial = $('#length_serial').val();
    zeros = '';
开发者ID:slims,项目名称:slims8_akasia,代码行数:31,代码来源:pop_pattern.php

示例4:

 // create new instance
 $form = new simbio_form_table_AJAX('mainForm', $_SERVER['PHP_SELF'] . '?' . $_SERVER['QUERY_STRING'], 'post');
 $form->submit_button_attr = 'name="saveData" value="' . __('Save') . '" class="button"';
 // form table attributes
 $form->table_attr = 'align="center" id="dataList" cellpadding="5" cellspacing="0"';
 $form->table_header_attr = 'class="alterCell" style="font-weight: bold;"';
 $form->table_content_attr = 'class="alterCell2"';
 // edit mode flag set
 if ($rec_q->num_rows > 0) {
     $form->edit_mode = true;
     // record ID for delete process
     if (!$changecurrent) {
         // form record id
         $form->record_id = $itemID;
     } else {
         $form->addHidden('updateRecordID', $itemID);
         $form->back_button = false;
     }
     // form record title
     $form->record_title = $rec_d['realname'];
     // submit button attribute
     $form->submit_button_attr = 'name="saveData" value="' . __('Update') . '" class="button"';
 }
 /* Form Element(s) */
 // user name
 $form->addTextField('text', 'userName', __('Login Username') . '*', $rec_d['username'], 'style="width: 50%;"');
 // user real name
 $form->addTextField('text', 'realName', __('Real Name') . '*', $rec_d['realname'], 'style="width: 50%;"');
 // user group
 // only appear by user who hold system module privileges
 if (!$changecurrent and $can_read and $can_write) {
开发者ID:slims,项目名称:s3st14,代码行数:31,代码来源:app_user.php

示例5:

     WHERE biblio_id=' . $itemID);
 $rec_d = $rec_q->fetch_assoc();
 // create new instance
 $form = new simbio_form_table_AJAX('mainForm', $_SERVER['PHP_SELF'] . '?' . $_SERVER['QUERY_STRING'], 'post');
 $form->submit_button_attr = 'name="saveData" value="' . __('Save') . '" class="button"';
 // form table attributes
 $form->table_attr = 'align="center" id="dataList" cellpadding="5" cellspacing="0"';
 $form->table_header_attr = 'class="alterCell" style="font-weight: bold;"';
 $form->table_content_attr = 'class="alterCell2"';
 $visibility = 'makeVisible';
 // edit mode flag set
 if ($rec_q->num_rows > 0) {
     $form->edit_mode = true;
     // record ID for delete process
     $form->record_id = $itemID;
     $form->addHidden('updateRecordID', $itemID);
     $form->back_button = false;
     // form record title
     $form->record_title = $rec_d['title'];
     // submit button attribute
     $form->submit_button_attr = 'name="saveData" value="' . __('Update') . '" class="button"';
     // element visibility class toogle
     $visibility = 'makeHidden';
 }
 /* Form Element(s) */
 // biblio title
 $form->addTextField('textarea', 'title', __('Title') . '*', $rec_d['title'], 'rows="1" style="width: 100%; overflow: auto;"');
 // biblio edition
 $form->addTextField('text', 'edition', __('Edition'), $rec_d['edition'], 'style="width: 40%;"');
 // biblio specific detail info/area
 $form->addTextField('textarea', 'specDetailInfo', __('Specific Detail Info'), $rec_d['spec_detail_info'], 'rows="2" style="width: 100%"');
开发者ID:slims,项目名称:s3st14,代码行数:31,代码来源:index.php

示例6:

 $rec_d = $rec_q->fetch_assoc();
 // create new instance
 $form = new simbio_form_table_AJAX('mainForm', $_SERVER['PHP_SELF'] . '?' . $_SERVER['QUERY_STRING'], 'post');
 $form->submit_button_attr = 'name="saveData" value="' . __('Save') . '" class="button"';
 // form table attributes
 $form->table_attr = 'align="center" id="dataList" cellpadding="5" cellspacing="0"';
 $form->table_header_attr = 'class="alterCell" style="font-weight: bold;"';
 $form->table_content_attr = 'class="alterCell2"';
 // edit mode flag set
 if ($rec_q->num_rows > 0) {
     $form->edit_mode = true;
     // record ID for delete process
     if (!$in_pop_up) {
         $form->record_id = $itemID;
     } else {
         $form->addHidden('updateRecordID', $itemID);
         $form->back_button = false;
     }
     // form record title
     $form->record_title = $rec_d['title'];
     // submit button attribute
     $form->submit_button_attr = 'name="saveData" value="' . __('Update') . '" class="button"';
     // default biblio title and biblio ID
     $b_title = $rec_d['title'];
     $b_id = $rec_d['biblio_id'];
     if (trim($rec_d['call_number']) == '') {
         $biblio_q = $dbs->query('SELECT call_number FROM biblio WHERE biblio_id=' . $rec_d['biblio_id']);
         $biblio_d = $biblio_q->fetch_assoc();
         $rec_d['call_number'] = $biblio_d['call_number'];
     }
 } else {
开发者ID:slims,项目名称:s3st15_matoa,代码行数:31,代码来源:item.php

示例7: trim

if (isset($_GET['type'])) {
    $type = trim($_GET['type']);
}
if (!in_array($type, array('barcode', 'label', 'membercard'))) {
    $type = 'barcode';
}
// include printed settings configuration file
include SB . 'admin' . DS . 'admin_template' . DS . 'printed_settings.inc.php';
// check for custom template settings
$custom_settings = SB . 'admin' . DS . $sysconf['admin_template']['dir'] . DS . $sysconf['template']['theme'] . DS . 'printed_settings.inc.php';
if (file_exists($custom_settings)) {
    include $custom_settings;
}
// create form instance
$form = new simbio_form_table_AJAX('mainForm', $_SERVER['PHP_SELF'], 'post');
$form->submit_button_attr = 'name="updateSettings" value="' . __('Save Settings') . '" class="btn btn-primary"';
// form table attributes
$form->table_attr = 'align="center" id="dataList" cellpadding="5" cellspacing="0"';
$form->table_header_attr = 'class="alterCell" style="font-weight: bold;"';
$form->table_content_attr = 'class="alterCell2"';
// load print settings from database
loadPrintSettings($dbs, $type);
$form->addAnything(__('Print setting for'), ucwords($type));
foreach ($sysconf['print'][$type] as $setting_name => $val) {
    $setting_name_label = ucwords(str_ireplace('_', ' ', $setting_name));
    $form->addTextField('text', $type . '[' . $setting_name . ']', __($setting_name_label), $val, 'style="width: 90%;"');
}
$form->addHidden('settingType', $type);
// print out the object
echo $form->printOut();
/* main content end */
开发者ID:banumelody,项目名称:slims7_cendana,代码行数:31,代码来源:print_settings.php

示例8: foreach

 include_once SB . $sysconf['template']['dir'] . DS . $_GET['theme'] . DS . 'tinfo.inc.php';
 if (isset($sysconf['template']['option'][$_GET['theme']]) && $_GET['customize'] == 'public') {
     // create new instance
     $form = new simbio_form_table_AJAX('mainForm', $_SERVER['PHP_SELF'], 'post');
     $form->submit_button_attr = 'name="updateData" value="' . __('Save Settings') . '" class="btn btn-default"';
     // form table attributes
     $form->table_attr = 'align="center" id="dataList" cellpadding="5" cellspacing="0"';
     $form->table_header_attr = 'class="alterCell" style="font-weight: bold;"';
     $form->table_content_attr = 'class="alterCell2"';
     foreach ($sysconf['template']['option'][$_GET['theme']] as $fid => $cfield) {
         // custom field properties
         $cf_dbfield = $cfield['dbfield'];
         $cf_label = $cfield['label'];
         $cf_default = $cfield['default'];
         $cf_data = isset($cfield['data']) && $cfield['data'] ? $cfield['data'] : array();
         $form->addHidden('themeDir', $_GET['theme']);
         $form->addHidden('themeType', $_GET['customize']);
         // custom field processing
         if (in_array($cfield['type'], array('text', 'longtext', 'numeric'))) {
             $cf_max = isset($cfield['max']) ? $cfield['max'] : '200';
             $cf_width = isset($cfield['width']) ? $cfield['width'] : '50';
             $form->addTextField($cfield['type'] == 'longtext' ? 'textarea' : 'text', $cf_dbfield, $cf_label, isset($sysconf['template'][$cf_dbfield]) ? $sysconf['template'][$cf_dbfield] : $cf_default, 'style="width: ' . $cf_width . '%;" maxlength="' . $cf_max . '"');
         } else {
             if ($cfield['type'] == 'dropdown') {
                 $form->addSelectList($cf_dbfield, $cf_label, $cf_data, isset($sysconf['template'][$cf_dbfield]) ? $sysconf['template'][$cf_dbfield] : $cf_default);
             } else {
                 if ($cfield['type'] == 'checklist') {
                     $form->addCheckBox($cf_dbfield, $cf_label, $cf_data, isset($sysconf['template'][$cf_dbfield]) ? $sysconf['template'][$cf_dbfield] : $cf_default);
                 } else {
                     if ($cfield['type'] == 'choice') {
                         $form->addRadio($cf_dbfield, $cf_label, $cf_data, isset($sysconf['template'][$cf_dbfield]) ? $sysconf['template'][$cf_dbfield] : $cf_default);
开发者ID:slims,项目名称:slims8_akasia,代码行数:31,代码来源:theme.php


注:本文中的simbio_form_table_AJAX::addHidden方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。