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();
$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
$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';
$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%;"');
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();
$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', '');
// 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']) {
// 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]);
$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%;"');
$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]); }
// 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()) {
?> <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();
// 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();
</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') {
$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']);
$form->addTextField('text', 'library_name', lang_sys_conf_form_field_library, $sysconf['library_name'], 'style="width: 100%;"'); // library subname $form->addTextField('text', 'library_subname', lang_sys_conf_form_field_library_subname, $sysconf['library_subname'], 'style="width: 100%;"'); /* Form Element(s) */ // public template // scan template directory $template_dir = SENAYAN_BASE_DIR . $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', lang_sys_conf_form_field_public_template, $tpl_options, $sysconf['template']['theme']); // admin template // scan admin template directory $admin_template_dir = SENAYAN_BASE_DIR . 'admin' . DIRECTORY_SEPARATOR . $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', lang_sys_conf_form_field_admin_template, $admin_tpl_options, $sysconf['admin_template']['theme']); // application language // scan language directory $lang_dir = LIB_DIR . 'lang';
?> </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) */ // fileCharacterset $characterset_options[] = array('ISO-8859-1', 'Latin-1'); $characterset_options[] = array('ISO-8859-1', 'ISO-8859-1'); $characterset_options[] = array('UTF-8', 'UTF-8'); $form->addSelectList('fileCharacterset', __('File Encoding'), $characterset_options); // 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();
} else { $chbox_array[] = array('1', __('Auto Set')); $str_input = '<div>' . simbio_form_element::checkBox('extend', $chbox_array, '1') . '</div>'; $str_input .= '<div>' . simbio_form_element::dateField('expDate', $rec_d['expire_date']) . '</div>'; $form->addAnything(__('Expiry Date') . '*', $str_input); } // member institution $form->addTextField('text', 'instName', __('Institution'), $rec_d['inst_name'], 'style="width: 100%;"'); // 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', __('Membership Type') . '*', $mtype_options, $rec_d['member_type_id']); // member gender $gender_chbox[0] = array('1', __('Male')); $gender_chbox[1] = array('0', __('Female')); $form->addRadio('gender', __('Gender'), $gender_chbox, !empty($rec_d['gender']) ? $rec_d['gender'] : '0'); // member address $form->addTextField('textarea', 'memberAddress', __('Address'), $rec_d['member_address'], 'rows="2" style="width: 100%;"'); // member postal $form->addTextField('text', 'memberPostal', __('Postal Code'), $rec_d['postal_code'], 'style="width: 60%;"'); // member mail address $form->addTextField('textarea', 'memberMailAddress', __('Mail Address'), $rec_d['member_mail_address'], 'rows="2" style="width: 100%;"'); // member phone $form->addTextField('text', 'memberPhone', __('Phone Number'), $rec_d['member_phone'], 'style="width: 60%;"'); // member fax $form->addTextField('text', 'memberFax', __('Fax Number'), $rec_d['member_fax'], 'style="width: 60%;"'); // member pin
// 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(__('Item Code'), $str_input); // call number $form->addTextField('text', 'callNumber', __('Call Number'), isset($rec_d['call_number']) ? $rec_d['call_number'] : $def_call_number, 'style="width: 40%;"'); // inventory code $form->addTextField('text', 'inventoryCode', __('Inventory Code'), $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', __('Location'), $location_options, $rec_d['location_id']); // item site $form->addTextField('text', 'itemSite', __('Shelf Location'), $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', __('Collection Type'), $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', __('Available')); while ($item_status_d = $item_status_q->fetch_row()) {
</div> </fieldset> <div id="importInfo" class="infoBox" style="display: none;"> </div><div id="importError" class="errorBox" style="display: none;"> </div> <?php // create new instance $form = new simbio_form_table_AJAX('mainForm', $_SERVER['PHP_SELF'], 'post'); $form->submit_button_attr = 'name="doImport" value="' . __('Import 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) */ // csv files $str_input = simbio_form_element::textField('file', 'importFile'); $str_input .= ' Maximum ' . $sysconf['max_upload'] . ' KB'; $form->addAnything(__('File To Import'), $str_input); // fileCharacterset $characterset_options[] = array('ISO-8859-1', 'Latin-1'); $characterset_options[] = array('ISO-8859-1', 'ISO-8859-1'); $characterset_options[] = array('UTF-8', 'UTF-8'); $form->addSelectList('fileCharacterset', __('File Encoding'), $characterset_options); // 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%;"'); // number of records to import $form->addTextField('text', 'recordNum', __('Number of Records To Import (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();
// form record title $form->record_title = $rec_d['frequency']; // submit button attribute $form->submit_button_attr = 'name="saveData" value="' . lang_sys_common_form_update . '" class="button"'; } /* Form Element(s) */ // frequency name $form->addTextField('text', 'frequencyName', lang_mod_masterfile_frequency_form_field_frequency_name . '*', $rec_d['frequency'], 'style="width: 60%;"'); // frequency language // get language data related to this record from database $lang_q = $dbs->query('SELECT language_id, language_name FROM mst_language'); $lang_options = array(); while ($lang_d = $lang_q->fetch_row()) { $lang_options[] = array($lang_d[0], $lang_d[1]); } $form->addSelectList('languagePrefix', lang_mod_biblio_field_lang, $lang_options, $rec_d['language_prefix']); // frequency time increment $form->addTextField('text', 'timeIncrement', lang_mod_masterfile_frequency_form_field_frequency_time_increment . '*', $rec_d['time_increment'], 'style="width: 10%;"'); // frequency time unit $unit_options[] = array('day', lang_sys_common_day); $unit_options[] = array('week', lang_sys_common_week); $unit_options[] = array('month', lang_sys_common_month); $unit_options[] = array('year', lang_sys_common_year); $form->addSelectList('timeUnit', lang_mod_masterfile_frequency_form_field_frequency_unit, $unit_options, $rec_d['time_unit']); // edit mode messagge if ($form->edit_mode) { echo '<div class="infoBox">' . lang_mod_masterfile_frequency_common_edit_info . ' : <b>' . $rec_d['frequency'] . '</b> <br />' . lang_mod_masterfile_frequency_common_last_update . $rec_d['last_update'] . '</div>'; } // print out the form object echo $form->printOut(); } else {
$form->submit_button_attr = 'name="saveData" value="' . __('Initialize Stock Take') . '" 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', __('Stock Take 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', __('ALL')); while ($gmd_d = $gmd_q->fetch_row()) { $gmd_options[] = array($gmd_d[0], $gmd_d[1]); } $form->addSelectList('gmdID', __('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', __('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', __('Collection Type'), $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', __('ALL')); while ($location_d = $location_q->fetch_row()) { $location_options[] = array($location_d[0], $location_d[1]); }
// form record title $form->record_title = $rec_d['frequency']; // submit button attribute $form->submit_button_attr = 'name="saveData" value="' . __('Update') . '" class="button"'; } /* Form Element(s) */ // frequency name $form->addTextField('text', 'frequencyName', __('Frequency') . '*', $rec_d['frequency'], 'style="width: 60%;"'); // frequency language // get language data related to this record from database $lang_q = $dbs->query('SELECT language_id, language_name FROM mst_language'); $lang_options = array(); while ($lang_d = $lang_q->fetch_row()) { $lang_options[] = array($lang_d[0], $lang_d[1]); } $form->addSelectList('languagePrefix', __('Language'), $lang_options, $rec_d['language_prefix']); // frequency time increment $form->addTextField('text', 'timeIncrement', __('Time Increment') . '*', $rec_d['time_increment'], 'style="width: 10%;"'); // frequency time unit $unit_options[] = array('day', __('Day')); $unit_options[] = array('week', __('Week')); $unit_options[] = array('month', __('Month')); $unit_options[] = array('year', __('Year')); $form->addSelectList('timeUnit', __('Time Unit'), $unit_options, $rec_d['time_unit']); // edit mode messagge if ($form->edit_mode) { echo '<div class="infoBox">' . __('You are going to edit Frequency data') . ' : <b>' . $rec_d['frequency'] . '</b> <br />' . __('Last Update') . $rec_d['last_update'] . '</div>'; //mfc } // print out the form object echo $form->printOut();
if ($rec_q->num_rows > 0) { $form->edit_mode = true; // record ID for delete process $form->record_id = $itemID; // form record title $form->record_title = $rec_d['name']; // submit button attribute $form->submit_button_attr = 'name="saveData" value="' . __('Update') . '" class="button"'; } /* Form Element(s) */ // Server name $form->addTextField('text', 'serverName', __('Server Name') . '*', $rec_d['name'], 'style="width: 50%;" maxlength="255"'); // Server URI $form->addTextField('text', 'serverUri', __('URI') . '*', $rec_d['uri'], 'style="width: 100%;"'); // Server type $form->addSelectList('serverType', __('Server Type'), $serverType, $rec_d['server_type']); // edit mode messagge if ($form->edit_mode) { echo '<div class="infoBox">' . __('You are going to edit server data') . ' : <b>' . $rec_d['name'] . '</b> <br />' . __('Last Update') . $rec_d['last_update'] . '</div>'; //mfc } // print out the form object echo $form->printOut(); } else { // table spec $table_spec = 'mst_servers AS ms'; // create datagrid $datagrid = new simbio_datagrid(); if ($can_read and $can_write) { $datagrid->setSQLColumn('ms.server_id', 'ms.name AS \'' . __('Server Name') . '\'', 'ms.uri AS \'' . __('URI') . '\'', 'ms.server_type AS \'' . __('SERVER') . '\'', 'ms.last_update AS \'' . __('Last Update') . '\''); } else {
$form->record_id = $itemID; // form record title $form->record_title = $rec_d['author_name']; // submit button attribute $form->submit_button_attr = 'name="saveData" value="' . __('Update') . '" class="button"'; } /* Form Element(s) */ // author name $form->addTextField('text', 'authorName', __('Author Name') . '*', $rec_d['author_name'], 'style="width: 60%;"'); // author year $form->addTextField('text', 'authorYear', __('Author Year'), $rec_d['author_year'], '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', __('Authority Type'), $auth_type_options, $rec_d['authority_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 author data') . ' : <b>' . $rec_d['author_name'] . '</b> <br />' . __('Last Update') . $rec_d['last_update'] . '</div>'; //mfc } // print out the form object echo $form->printOut(); } else { /* AUTHOR LIST */ // table spec $sql_criteria = 'a.author_id > 1'; if (isset($_GET['type']) && $_GET['type'] == 'orphaned') { $table_spec = 'mst_author AS a LEFT JOIN biblio_author AS ba ON a.author_id=ba.author_id';
// 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="' . __('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', __('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', __('ALL')); $form->addSelectList('collTypeID', __('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, __('ALL')); while ($gmd_data = $gmd_query->fetch_row()) { $gmd_options[] = array($gmd_data[0], $gmd_data[1]);
$str_input = '<div class="makeHidden"><a class="notAJAX" href="javascript: openHTMLpop(\'' . MODULES_WEB_ROOT_DIR . 'bibliography/pop_item.php?inPopUp=true&action=detail&biblioID=' . $rec_d['biblio_id'] . '\', 650, 400, \'' . __('Items/Copies') . '\')">' . __('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'] . '&block=1"></iframe>' . "\n"; $form->addAnything('Item(s) Data', $str_input); } // biblio authors $str_input = '<div class="' . $visibility . '"><a class="notAJAX" href="javascript: openHTMLpop(\'' . MODULES_WEB_ROOT_DIR . 'bibliography/pop_author.php?biblioID=' . $rec_d['biblio_id'] . '\', 500, 200, \'' . __('Authors/Roles') . '\')">' . __('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'] . '&block=1"></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%;"');
$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 = SENAYAN_BASE_DIR . $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 = SENAYAN_BASE_DIR . 'admin' . DIRECTORY_SEPARATOR . $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 LANGUAGES_BASE_DIR . 'localisation.php'; $form->addSelectList('default_lang', __('Default App. Language'), $available_languages, $sysconf['default_lang']);
} else { $chbox_array[] = array('1', __('Auto Set')); $str_input = '<div>' . simbio_form_element::checkBox('extend', $chbox_array, '1') . '</div>'; $str_input .= '<div>' . simbio_form_element::dateField('expDate', $rec_d['expire_date']) . '</div>'; $form->addAnything(__('Expiry Date') . '*', $str_input); } // member institution $form->addTextField('text', 'instName', __('Institution'), $rec_d['inst_name'], 'style="width: 100%;"'); // 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', __('Membership Type') . '*', $mtype_options, $rec_d['member_type_id']); // member gender $gender_chbox[0] = array('1', __('Male')); $gender_chbox[1] = array('0', __('Female')); $form->addRadio('gender', __('Gender'), $gender_chbox, !empty($rec_d['gender']) ? $rec_d['gender'] : '0'); // member address $form->addTextField('textarea', 'memberAddress', __('Address'), $rec_d['member_address'], 'rows="2" style="width: 100%;"'); // member postal $form->addTextField('text', 'memberPostal', __('Postal Code'), $rec_d['postal_code'], 'style="width: 60%;"'); // member phone $form->addTextField('text', 'memberPhone', __('Phone Number'), $rec_d['member_phone'], 'style="width: 60%;"'); // member fax $form->addTextField('text', 'memberFax', __('Fax Number'), $rec_d['member_fax'], 'style="width: 60%;"'); // member pin $form->addTextField('text', 'memberPIN', __('Personal ID Number'), $rec_d['pin'], 'style="width: 100%;"'); // member notes
} else { $chbox_array[] = array('1', lang_mod_membership_field_opt_autoset); $str_input = '<div>' . simbio_form_element::checkBox('extend', $chbox_array, '1') . '</div>'; $str_input .= '<div>' . simbio_form_element::dateField('expDate', $rec_d['expire_date']) . '</div>'; $form->addAnything(lang_mod_membership_field_expiry_date . '*', $str_input); } // member institution $form->addTextField('text', 'instName', lang_mod_membership_field_institution, $rec_d['inst_name'], 'style="width: 100%;"'); // 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_membership_field_membership_type, $mtype_options, $rec_d['member_type_id']); // member gender $gender_chbox[0] = array('1', lang_mod_membership_field_gender_opt1); $gender_chbox[1] = array('0', lang_mod_membership_field_gender_opt2); $form->addRadio('gender', lang_mod_membership_field_gender, $gender_chbox, !empty($rec_d['gender']) ? $rec_d['gender'] : '0'); // member email $form->addTextField('text', 'memberEmail', lang_mod_membership_field_email, $rec_d['member_email'], 'style="width: 60%;"'); // member address $form->addTextField('textarea', 'memberAddress', lang_mod_membership_field_address, $rec_d['member_address'], 'rows="2" style="width: 100%;"'); // member postal $form->addTextField('text', 'memberPostal', lang_mod_membership_field_postal_code, $rec_d['postal_code'], 'style="width: 60%;"'); // member phone $form->addTextField('text', 'memberPhone', lang_mod_membership_field_phone_number, $rec_d['member_phone'], 'style="width: 60%;"'); // member fax $form->addTextField('text', 'memberFax', lang_mod_membership_field_fax_number, $rec_d['member_fax'], 'style="width: 60%;"'); // member pin