本文整理汇总了PHP中simbio_form_table_AJAX::addSelectList方法的典型用法代码示例。如果您正苦于以下问题:PHP simbio_form_table_AJAX::addSelectList方法的具体用法?PHP simbio_form_table_AJAX::addSelectList怎么用?PHP simbio_form_table_AJAX::addSelectList使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类simbio_form_table_AJAX
的用法示例。
在下文中一共展示了simbio_form_table_AJAX::addSelectList方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: htmlentities
echo lang_mod_biblio_export_header;
?>
<hr />
<?php
echo lang_mod_biblio_export_header_text;
?>
</div>
</fieldset>
<?php
// create new instance
$form = new simbio_form_table_AJAX('mainForm', $_SERVER['PHP_SELF'], 'post');
$form->submit_button_attr = 'name="doExport" value="' . lang_mod_biblio_export_form_button_start . '" 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"';
/* Form Element(s) */
// field separator
$form->addTextField('text', 'fieldSep', lang_mod_biblio_export_form_field_separator, '' . htmlentities(',') . '', 'style="width: 10%;" maxlength="3"');
// field enclosed
$form->addTextField('text', 'fieldEnc', lang_mod_biblio_export_form_field_enclosed, '' . htmlentities('"') . '', 'style="width: 10%;"');
// record separator
$rec_sep_options[] = array('NEWLINE', 'NEWLINE');
$rec_sep_options[] = array('RETURN', 'CARRIAGE RETURN');
$form->addSelectList('recordSep', lang_mod_biblio_export_form_field_rec_separator, $rec_sep_options);
// number of records to export
$form->addTextField('text', 'recordNum', lang_mod_biblio_export_form_field_rec_to_export, '0', 'style="width: 10%;"');
// records offset
$form->addTextField('text', 'recordOffset', lang_mod_biblio_export_form_field_rec_start, '1', 'style="width: 10%;"');
// output the form
echo $form->printOut();
示例2: foreach
$form->edit_mode = true;
// record ID for delete process
$form->record_id = $itemID;
// form record title
$form->record_title = $rec_d['author_name'];
// submit button attribute
$form->submit_button_attr = 'name="saveData" value="' . lang_sys_common_form_update . '" class="button"';
}
/* Form Element(s) */
// author name
$form->addTextField('text', 'authorName', lang_mod_masterfile_author_form_field_name . '*', $rec_d['author_name'], 'style="width: 60%;"');
// authority type
foreach ($sysconf['authority_type'] as $auth_type_id => $auth_type) {
$auth_type_options[] = array($auth_type_id, $auth_type);
}
$form->addSelectList('authorityType', lang_mod_masterfile_author_form_field_authority, $auth_type_options, $rec_d['authority_type']);
// authority list
$form->addTextField('text', 'authList', lang_mod_masterfile_authority_files, $rec_d['auth_list'], 'style="width: 30%;"');
// edit mode messagge
if ($form->edit_mode) {
echo '<div class="infoBox">' . lang_mod_masterfile_author_common_edit_info . '<b>' . $rec_d['author_name'] . '</b> <br />' . lang_mod_masterfile_author_common_last_update . $rec_d['last_update'] . '</div>';
}
// print out the form object
echo $form->printOut();
} else {
/* AUTHOR LIST */
// table spec
$table_spec = 'mst_author AS a';
// authority field num
$auth_type_fld = 1;
// create datagrid
示例3: foreach
$form->edit_mode = true;
// record ID for delete process
$form->record_id = $itemID;
// form record title
$form->record_title = $rec_d['topic'];
// submit button attribute
$form->submit_button_attr = 'name="saveData" value="' . __('Update') . '" class="button"';
}
/* Form Element(s) */
// subject
$form->addTextField('text', 'topic', __('Subject') . '*', $rec_d['topic'], 'style="width: 60%;"');
// subject type
foreach ($sysconf['subject_type'] as $subj_type_id => $subj_type) {
$subj_type_options[] = array($subj_type_id, $subj_type);
}
$form->addSelectList('subjectType', __('Subject Type'), $subj_type_options, $rec_d['topic_type']);
// authority list
$form->addTextField('text', 'authList', __('Authority Files'), $rec_d['auth_list'], 'style="width: 30%;"');
// edit mode messagge
if ($form->edit_mode) {
echo '<div class="infoBox">' . __('You are going to edit Subject data') . ' : <b>' . $rec_d['topic'] . '</b> <br />' . __('Last Update') . $rec_d['last_update'] . '</div>';
//mfc
}
// print out the form object
echo $form->printOut();
} else {
/* TOPIC LIST */
// table spec
$sql_criteria = 't.topic_id > 1';
if (isset($_GET['type']) && $_GET['type'] == 'orphaned') {
$table_spec = 'mst_topic AS t LEFT JOIN biblio_topic AS bt ON t.topic_id=bt.topic_id';
示例4: openWin
$str_input = '<div class="makeHidden"><a href="javascript: openWin(\'' . MODULES_WEB_ROOT_DIR . 'bibliography/pop_item.php?inPopUp=true&action=detail&biblioID=' . $rec_d['biblio_id'] . '\', \'popItem\', 600, 400, true)">' . __('Add New Items') . '</a></div>';
$str_input .= '<iframe name="itemIframe" id="itemIframe" class="borderAll" style="width: 100%; height: 70px;" src="' . MODULES_WEB_ROOT_DIR . 'bibliography/iframe_item_list.php?biblioID=' . $rec_d['biblio_id'] . '"></iframe>' . "\n";
$form->addAnything('Item(s) Data', $str_input);
}
// biblio authors
$str_input = '<div class="' . $visibility . '"><a href="javascript: openWin(\'' . MODULES_WEB_ROOT_DIR . 'bibliography/pop_author.php?biblioID=' . $rec_d['biblio_id'] . '\', \'popAuthor\', 500, 200, true)">' . __('Add Author(s)') . '</a></div>';
$str_input .= '<iframe name="authorIframe" id="authorIframe" class="borderAll" style="width: 100%; height: 70px;" src="' . MODULES_WEB_ROOT_DIR . 'bibliography/iframe_author.php?biblioID=' . $rec_d['biblio_id'] . '"></iframe>';
$form->addAnything(__('Author(s)'), $str_input);
// biblio gmd
// get gmd data related to this record from database
$gmd_q = $dbs->query('SELECT gmd_id, gmd_name FROM mst_gmd');
$gmd_options = array();
while ($gmd_d = $gmd_q->fetch_row()) {
$gmd_options[] = array($gmd_d[0], $gmd_d[1]);
}
$form->addSelectList('gmdID', __('GMD'), $gmd_options, $rec_d['gmd_id']);
// biblio publish frequencies
// get frequency data related to this record from database
$freq_q = $dbs->query('SELECT frequency_id, frequency FROM mst_frequency');
$freq_options[] = array('0', strtoupper(__('Not Applicable')));
while ($freq_d = $freq_q->fetch_row()) {
$freq_options[] = array($freq_d[0], $freq_d[1]);
}
$str_input = simbio_form_element::selectList('frequencyID', $freq_options, $rec_d['frequency_id']);
$str_input .= ' ';
$str_input .= ' ' . __('Use this for Serial publication');
$form->addAnything(__('Frequency'), $str_input);
// biblio ISBN/ISSN
$form->addTextField('text', 'isbn_issn', __('ISBN/ISSN'), $rec_d['isbn_issn'], 'style="width: 40%;"');
// biblio classification
$form->addTextField('text', 'class', __('Classification'), $rec_d['classification'], 'style="width: 40%;"');
示例5: __
echo __('EXPORT TOOL');
?>
<hr />
<?php
echo __('Export bibliographics data to CSV file');
?>
</div>
</fieldset>
<?php
// create new instance
$form = new simbio_form_table_AJAX('mainForm', $_SERVER['PHP_SELF'], 'post');
$form->submit_button_attr = 'name="doExport" value="' . __('Export Now') . '" 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"';
/* Form Element(s) */
// field separator
$form->addTextField('text', 'fieldSep', __('Field Separator') . '*', '' . htmlentities(',') . '', 'style="width: 10%;" maxlength="3"');
// field enclosed
$form->addTextField('text', 'fieldEnc', __('Field Enclosed With') . '*', '' . htmlentities('"') . '', 'style="width: 10%;"');
// record separator
$rec_sep_options[] = array('NEWLINE', 'NEWLINE');
$rec_sep_options[] = array('RETURN', 'CARRIAGE RETURN');
$form->addSelectList('recordSep', __('Record Separator'), $rec_sep_options);
// number of records to export
$form->addTextField('text', 'recordNum', __('Number of Records To Export (0 for all records)'), '0', 'style="width: 10%;"');
// records offset
$form->addTextField('text', 'recordOffset', __('Start From Record'), '1', 'style="width: 10%;"');
// output the form
echo $form->printOut();
示例6: array
$form->addAnything(__('Item(s) code batch generator'), $str_input);
// biblio item add
if (!$in_pop_up and $form->edit_mode) {
// $str_input = '<div class="makeHidden"><a class="notAJAX button" href="javascript: openHTMLpop(\''.MWB.'bibliography/pop_item.php?inPopUp=true&action=detail&biblioID='.$rec_d['biblio_id'].'\', 650, 400, \''.__('Items/Copies').'\')">'.__('Add New Items').'</a></div>';
$str_input = '<div class="makeHidden"><a class="notAJAX button btn btn-info openPopUp" href="' . MWB . 'bibliography/pop_item.php?inPopUp=true&action=detail&biblioID=' . $rec_d['biblio_id'] . '" title="' . __('Items/Copies') . '" height="500">' . __('Add New Items') . '</a></div>';
$str_input .= '<iframe name="itemIframe" id="itemIframe" class="borderAll" style="width: 100%; height: 70px;" src="' . MWB . 'bibliography/iframe_item_list.php?biblioID=' . $rec_d['biblio_id'] . '&block=1"></iframe>' . "\n";
$form->addAnything(__('Item(s) Data'), $str_input);
}
// biblio gmd
// get gmd data related to this record from database
$gmd_q = $dbs->query('SELECT gmd_id, gmd_name FROM mst_gmd');
$gmd_options = array();
while ($gmd_d = $gmd_q->fetch_row()) {
$gmd_options[] = array($gmd_d[0], $gmd_d[1]);
}
$form->addSelectList('gmdID', __('GMD'), $gmd_options, $rec_d['gmd_id'], 'class="select2"', __('General material designation. The physical form of publication.'));
// biblio publish frequencies
// get frequency data related to this record from database
$freq_q = $dbs->query('SELECT frequency_id, frequency FROM mst_frequency');
$freq_options[] = array('0', __('Not Applicable'));
while ($freq_d = $freq_q->fetch_row()) {
$freq_options[] = array($freq_d[0], $freq_d[1]);
}
$str_input = simbio_form_element::selectList('frequencyID', $freq_options, $rec_d['frequency_id'], 'class="select2"');
$str_input .= ' ';
$str_input .= ' ' . __('Use this for Serial publication');
$form->addAnything(__('Frequency'), $str_input);
// biblio ISBN/ISSN
$form->addTextField('text', 'isbn_issn', __('ISBN/ISSN'), $rec_d['isbn_issn'], 'style="width: 40%;"', __('Unique publishing number for each title of publication.'));
// biblio publisher
$publ_options[] = array('NONE', '');
示例7: array
// form record title
$form->record_title = $rec_d['realname'];
// submit button attribute
$form->submit_button_attr = 'name="saveData" value="' . __('Update') . '" class="btn btn-default"';
}
/* 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 type
$utype_options = array();
foreach ($sysconf['system_user_type'] as $id => $name) {
$utype_options[] = array($id, $name);
}
$form->addSelectList('userType', __('User Type') . '*', $utype_options, $rec_d['user_type']);
// user e-mail
$form->addTextField('text', 'eMail', __('E-Mail'), $rec_d['email'], 'style="width: 50%;"');
// social media link
$str_input = '';
$social_media = array();
if ($rec_d['social_media']) {
$social_media = @unserialize($rec_d['social_media']);
}
foreach ($sysconf['social'] as $id => $social) {
$str_input .= '<div class="social-input"><span class="social-label">' . $social . '</span><span class="social-form"><input type="text" name="social[' . $id . ']" value="' . (isset($social_media[$id]) ? $social_media[$id] : '') . '" placeholder="' . $social . '" /></span></div>' . "\n";
}
$form->addAnything(__('Social Media'), $str_input);
// user photo
$str_input = '';
if ($rec_d['user_image']) {
示例8: array
// form record id
$form->record_id = $itemID;
// form record title
$form->record_title = 'Loan Rules';
// submit button attribute
$form->submit_button_attr = 'name="saveData" value="' . lang_sys_common_form_update . '" class="button"';
}
/* Form Element(s) */
// member type
// get mtype data related to this record from database
$mtype_query = $dbs->query('SELECT member_type_id, member_type_name FROM mst_member_type');
$mtype_options = array();
while ($mtype_data = $mtype_query->fetch_row()) {
$mtype_options[] = array($mtype_data[0], $mtype_data[1]);
}
$form->addSelectList('memberTypeID', lang_mod_circ_loan_rules_field_member_type, $mtype_options, $rec_d['member_type_id'], 'style="width: 50%;"');
// collection type
// get collection type data related to this record from database
$ctype_query = $dbs->query('SELECT coll_type_id, coll_type_name FROM mst_coll_type');
$ctype_options = array();
while ($ctype_data = $ctype_query->fetch_row()) {
$ctype_options[] = array($ctype_data[0], $ctype_data[1]);
}
$ctype_options[] = array('0', lang_sys_common_all);
$form->addSelectList('collTypeID', lang_mod_circ_loan_rules_field_collection_type, $ctype_options, $rec_d['coll_type_id'], 'style="width: 50%;"');
// gmd
// get gmd data related to this record from database
$gmd_query = $dbs->query('SELECT gmd_id, gmd_name FROM mst_gmd');
$gmd_options[] = array(0, lang_sys_common_all);
while ($gmd_data = $gmd_query->fetch_row()) {
$gmd_options[] = array($gmd_data[0], $gmd_data[1]);
示例9: openWin
$str_input = '<div class="makeHidden"><a href="javascript: openWin(\'' . MODULES_WEB_ROOT_DIR . 'bibliography/pop_item.php?inPopUp=true&action=detail&biblioID=' . $rec_d['biblio_id'] . '\', \'popItem\', 600, 400, true)">' . lang_mod_biblio_link_item_add . '</a></div>';
$str_input .= '<iframe name="itemIframe" id="itemIframe" class="borderAll" style="width: 100%; height: 70px;" src="' . MODULES_WEB_ROOT_DIR . 'bibliography/iframe_item_list.php?biblioID=' . $rec_d['biblio_id'] . '"></iframe>' . "\n";
$form->addAnything('Item(s) Data', $str_input);
}
// biblio authors
$str_input = '<div class="' . $visibility . '"><a href="javascript: openWin(\'' . MODULES_WEB_ROOT_DIR . 'bibliography/pop_author.php?biblioID=' . $rec_d['biblio_id'] . '\', \'popAuthor\', 500, 200, true)">' . lang_mod_biblio_link_author_add . '</a></div>';
$str_input .= '<iframe name="authorIframe" id="authorIframe" class="borderAll" style="width: 100%; height: 70px;" src="' . MODULES_WEB_ROOT_DIR . 'bibliography/iframe_author.php?biblioID=' . $rec_d['biblio_id'] . '"></iframe>';
$form->addAnything(lang_mod_biblio_field_authors, $str_input);
// biblio gmd
// get gmd data related to this record from database
$gmd_q = $dbs->query('SELECT gmd_id, gmd_name FROM mst_gmd');
$gmd_options = array();
while ($gmd_d = $gmd_q->fetch_row()) {
$gmd_options[] = array($gmd_d[0], $gmd_d[1]);
}
$form->addSelectList('gmdID', lang_mod_biblio_field_gmd, $gmd_options, $rec_d['gmd_id']);
// biblio publish frequencies
// get frequency data related to this record from database
$freq_q = $dbs->query('SELECT frequency_id, frequency FROM mst_frequency');
$freq_options[] = array('0', lang_mod_biblio_field_opt_none);
while ($freq_d = $freq_q->fetch_row()) {
$freq_options[] = array($freq_d[0], $freq_d[1]);
}
$str_input = simbio_form_element::selectList('frequencyID', $freq_options, $rec_d['frequency_id']);
$str_input .= ' ';
$str_input .= ' ' . lang_mod_biblio_field_frequency_explain;
$form->addAnything(lang_mod_masterfile_frequency, $str_input);
// biblio ISBN/ISSN
$form->addTextField('text', 'isbn_issn', lang_mod_biblio_field_isbn, $rec_d['isbn_issn'], 'style="width: 40%;"');
// biblio classification
$form->addTextField('text', 'class', lang_mod_biblio_field_class, $rec_d['classification'], 'style="width: 40%;"');
示例10: array
$form->submit_button_attr = 'name="saveData" value="' . lang_mod_stocktake_init_button_start . '" 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"';
/* Form Element(s) */
// stock take name
$form->addTextField('text', 'name', lang_mod_stocktake_init_field_name . '*', '', 'style="width: 60%;"');
// gmd
// get gmd data related to this record from database
$gmd_q = $dbs->query('SELECT gmd_id, gmd_name FROM mst_gmd');
$gmd_options[] = array('0', lang_mod_stocktake_init_field_option_all);
while ($gmd_d = $gmd_q->fetch_row()) {
$gmd_options[] = array($gmd_d[0], $gmd_d[1]);
}
$form->addSelectList('gmdID', lang_mod_stocktake_init_field_GMD, $gmd_options);
// collection type
// get coll_type data related to this record from database
$coll_type_q = $dbs->query('SELECT coll_type_id, coll_type_name FROM mst_coll_type');
$coll_type_options[] = array('0', lang_mod_stocktake_init_field_option_all);
while ($coll_type_d = $coll_type_q->fetch_row()) {
$coll_type_options[] = array($coll_type_d[0], $coll_type_d[1]);
}
$form->addSelectList('collTypeID', lang_mod_stocktake_init_field_colltype, $coll_type_options);
// location
// get language data related to this record from database
$location_q = $dbs->query("SELECT location_id, location_name FROM mst_location");
$location_options[] = array('0', lang_mod_stocktake_init_field_option_all);
while ($location_d = $location_q->fetch_row()) {
$location_options[] = array($location_d[0], $location_d[1]);
}
示例11: isset
// item code
$str_input = simbio_form_element::textField('text', 'itemCode', $rec_d['item_code'], 'onblur="ajaxCheckID(\'' . SENAYAN_WEB_ROOT_DIR . 'admin/AJAX_check_id.php\', \'item\', \'item_code\', \'msgBox\', \'itemCode\')" style="width: 40%;"');
$str_input .= ' <span id="msgBox"> </span>';
$form->addAnything(lang_mod_biblio_item_field_itemcode, $str_input);
// call number
$form->addTextField('text', 'callNumber', lang_mod_biblio_field_call_number, isset($rec_d['call_number']) ? $rec_d['call_number'] : $def_call_number, 'style="width: 40%;"');
// inventory code
$form->addTextField('text', 'inventoryCode', lang_mod_biblio_item_field_inventory, $rec_d['inventory_code'], 'style="width: 100%;"');
// item location
// get location data related to this record from database
$location_q = $dbs->query("SELECT location_id, location_name FROM mst_location");
$location_options = array();
while ($location_d = $location_q->fetch_row()) {
$location_options[] = array($location_d[0], $location_d[1]);
}
$form->addSelectList('locationID', lang_mod_biblio_item_field_location, $location_options, $rec_d['location_id']);
// item site
$form->addTextField('text', 'itemSite', lang_mod_biblio_item_field_site, $rec_d['site'], 'style="width: 40%;"');
// collection type
// get collection type data related to this record from database
$coll_type_q = $dbs->query("SELECT coll_type_id, coll_type_name FROM mst_coll_type");
$coll_type_options = array();
while ($coll_type_d = $coll_type_q->fetch_row()) {
$coll_type_options[] = array($coll_type_d[0], $coll_type_d[1]);
}
$form->addSelectList('collTypeID', lang_mod_biblio_item_field_ctype, $coll_type_options, $rec_d['coll_type_id']);
// item status
// get item status data from database
$item_status_q = $dbs->query("SELECT item_status_id, item_status_name FROM mst_item_status");
$item_status_options[] = array('0', lang_mod_biblio_item_field_opt_available);
while ($item_status_d = $item_status_q->fetch_row()) {
示例12: strtoupper
?>
<fieldset class="menuBox">
<div class="menuBoxInner exportIcon">
<?php
echo strtoupper(lang_mod_membership_export_data) . '<hr />' . lang_mod_membership_export_data_description;
?>
</div>
</fieldset>
<?php
// create new instance
$form = new simbio_form_table_AJAX('mainForm', $_SERVER['PHP_SELF'] . '', 'post');
$form->submit_button_attr = 'name="doExport" value="' . lang_mod_member_export_button_start . '" 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"';
/* Form Element(s) */
// field separator
$form->addTextField('text', 'fieldSep', lang_mod_member_export_field_field_separator . '*', '' . htmlentities(',') . '', 'style="width: 10%;"');
// field enclosed
$form->addTextField('text', 'fieldEnc', lang_mod_member_export_field_field_enclosed, '' . htmlentities('"') . '', 'style="width: 10%;"');
// record separator
$rec_sep_options[] = array('NEWLINE', 'NEWLINE');
$rec_sep_options[] = array('RETURN', 'CARRIAGE RETURN');
$form->addSelectList('recordSep', lang_mod_member_export_field_record_separator, $rec_sep_options);
// number of records to export
$form->addTextField('text', 'recordNum', lang_mod_member_export_field_record_number, '0', 'style="width: 10%;"');
// records offset
$form->addTextField('text', 'recordOffset', lang_mod_member_export_field_record_offset, '1', 'style="width: 10%;"');
// output the form
echo $form->printOut();
示例13: array
// load settings
utility::loadSettings($dbs);
// 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"';
/**
* UCS global settings
*/
// UCS Enabled
$options = null;
$options[] = array('0', __('Disable'));
$options[] = array('1', __('Enable'));
$form->addSelectList('enable', __('Enable UCS'), $options, $sysconf['ucs']['enable'] ? '1' : '0');
// auto delete same record on UCS?
$form->addSelectList('auto_delete', __('Auto delete record'), $options, $sysconf['ucs']['auto_delete'] ? '1' : '0');
// auto insert new record to UCS?
$form->addSelectList('auto_insert', __('Auto insert record'), $options, $sysconf['ucs']['auto_insert'] ? '1' : '0');
// server uri
$form->addTextField('text', 'serveraddr', __('Server address'), $sysconf['ucs']['serveraddr'], 'style="width: 60%;"');
// server uri
$form->addTextField('text', 'id', __('Server ID'), $sysconf['ucs']['id'], 'style="width: 60%;"');
// server uri
$form->addTextField('text', 'password', __('Server Password'), $sysconf['ucs']['password'], 'style="width: 60%;"');
// server uri
$form->addTextField('text', 'name', __('Server Name'), $sysconf['ucs']['name'], 'style="width: 60%;"');
// print out the object
echo $form->printOut();
示例14: array
</fieldset>
<?php
/* search form end */
if (isset($_GET['action']) && $_GET['action'] == 'batch') {
$form = new simbio_form_table_AJAX('mainForm', $_SERVER['PHP_SELF'], 'post');
$form->submit_button_attr = 'name="doExport" value="' . __('Export Now') . '" 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"';
/* Form Element(s) */
// record separator
$rec_sep_options[] = array('RAW', 'MARC RAW');
$rec_sep_options[] = array('XML', 'MARCXML');
$rec_sep_options[] = array('JSON', 'MARCJSON');
$form->addSelectList('exportType', __('Export Type'), $rec_sep_options);
// number of records to export
$form->addTextField('text', 'recordNum', __('Number of Records To Export (0 for all records)'), '0', 'style="width: 10%;"');
// records offset
$form->addTextField('text', 'recordOffset', __('Start From Record'), '1', 'style="width: 10%;"');
// output the form
echo $form->printOut();
} else {
// List of books
$datagrid = new simbio_datagrid();
/* ITEM LIST */
require SIMBIO . 'simbio_UTILS/simbio_tokenizecql.inc.php';
require LIB . 'biblio_list_model.inc.php';
// index choice
if ($sysconf['index']['type'] == 'index' || $sysconf['index']['type'] == 'sphinx' && file_exists(LIB . 'sphinx/sphinxapi.php')) {
if ($sysconf['index']['type'] == 'sphinx') {
示例15: array
$form->addTextField('text', 'library_name', __('Library Name'), $sysconf['library_name'], 'style="width: 100%;"');
// library subname
$form->addTextField('text', 'library_subname', __('Library Subname'), $sysconf['library_subname'], 'style="width: 100%;"');
/* Form Element(s) */
// public template
// scan template directory
$template_dir = SB . $sysconf['template']['dir'];
$dir = new simbio_directory($template_dir);
$dir_tree = $dir->getDirectoryTree(1);
// sort array by index
ksort($dir_tree);
// loop array
foreach ($dir_tree as $dir) {
$tpl_options[] = array($dir, $dir);
}
$form->addSelectList('template', __('Public Template'), $tpl_options, $sysconf['template']['theme']);
// admin template
// scan admin template directory
$admin_template_dir = SB . 'admin' . DS . $sysconf['admin_template']['dir'];
$dir = new simbio_directory($admin_template_dir);
$dir_tree = $dir->getDirectoryTree(1);
// sort array by index
ksort($dir_tree);
// loop array
foreach ($dir_tree as $dir) {
$admin_tpl_options[] = array($dir, $dir);
}
$form->addSelectList('admin_template', __('Admin Template'), $admin_tpl_options, $sysconf['admin_template']['theme']);
// application language
require_once LANG . 'localisation.php';
$form->addSelectList('default_lang', __('Default App. Language'), $available_languages, $sysconf['default_lang']);