示例#1
0
" target="reportView">
    <div id="filterForm">
        <div class="divRow">
            <div class="divRowLabel"><?php 
    echo __('Membership Type');
    ?>
</div>
            <div class="divRowContent">
            <?php 
    $mtype_q = $dbs->query('SELECT member_type_id, member_type_name FROM mst_member_type');
    $mtype_options = array();
    $mtype_options[] = array('0', __('ALL'));
    while ($mtype_d = $mtype_q->fetch_row()) {
        $mtype_options[] = array($mtype_d[0], $mtype_d[1]);
    }
    echo simbio_form_element::selectList('member_type', $mtype_options);
    ?>
            </div>
        </div>
        <div class="divRow">
            <div class="divRowLabel"><?php 
    echo __('Member ID') . '/' . __('Member Name');
    ?>
</div>
            <div class="divRowContent">
            <?php 
    echo simbio_form_element::textField('text', 'id_name', '', 'style="width: 50%"');
    ?>
            </div>
        </div>
        <div class="divRow">
示例#2
0
            </div>
        </div>
        <div class="divRow">
            <div class="divRowLabel"><?php 
    echo __('Location');
    ?>
</div>
            <div class="divRowContent">
            <?php 
    $loc_q = $dbs->query('SELECT location_id, location_name FROM mst_location');
    $loc_options = array();
    $loc_options[] = array('0', __('ALL'));
    while ($loc_d = $loc_q->fetch_row()) {
        $loc_options[] = array($loc_d[0], $loc_d[1]);
    }
    echo simbio_form_element::selectList('location', $loc_options);
    ?>
            </div>
        </div>
        <div class="divRow">
            <div class="divRowLabel"><?php 
    echo __('Record each page');
    ?>
</div>
            <div class="divRowContent"><input type="text" name="recsEachPage" size="3" maxlength="3" value="<?php 
    echo $num_recs_show;
    ?>
" /> <?php 
    echo __('Set between 20 and 200');
    ?>
</div>
    ?>
            </div>
        </div>
        <div class="divRow">
            <div class="divRowLabel"><?php 
    echo __('Month');
    ?>
</div>
            <div class="divRowContent">
            <?php 
    $current_month = date('m');
    $month_options = array();
    foreach ($months as $idx => $month) {
        $month_options[] = array($idx, $month);
    }
    echo simbio_form_element::selectList('month', $month_options, $current_month);
    ?>
            </div>
        </div>
    </div>
    <div style="padding-top: 10px; clear: both;">
    <input type="button" name="moreFilter" value="<?php 
    echo __('Show More Filter Options');
    ?>
" />
    <input type="submit" name="applyFilter" value="<?php 
    echo __('Apply Filter');
    ?>
" />
    <input type="hidden" name="reportView" value="true" />
    </div>
示例#4
0
    echo $_SERVER['PHP_SELF'];
    ?>
" target="reportView">
    <div id="filterForm">
        <div class="divRow">
            <div class="divRowLabel"><?php 
    echo __('Recap By');
    ?>
:</div>
            <div class="divRowContent">
            <?php 
    $recapby_options[] = array('', __('Classification'));
    $recapby_options[] = array('gmd', __('GMD'));
    $recapby_options[] = array('collType', __('Collection Type'));
    $recapby_options[] = array('language', __('Language'));
    echo simbio_form_element::selectList('recapBy', $recapby_options);
    ?>
            </div>
        </div>
    </div>
    <div style="padding-top: 10px; clear: both;">
    <input type="submit" name="applyFilter" value="<?php 
    echo __('Apply Filter');
    ?>
" />
    <!--
    <input type="button" name="moreFilter" value="<?php 
    echo __('Show More Filter Options');
    ?>
" onclick="showHideTableRows('filterForm', 1, this, '<?php 
    echo __('Show More Filter Options');
示例#5
0
    ?>
            </div>
        </div>
        <div class="divRow">
            <div class="divRowLabel"><?php 
    echo __('Year');
    ?>
</div>
            <div class="divRowContent">
            <?php 
    $current_year = date('Y');
    $year_options = array();
    for ($y = $current_year; $y > 1999; $y--) {
        $year_options[] = array($y, $y);
    }
    echo simbio_form_element::selectList('year', $year_options, $current_year - 1);
    ?>
            </div>
        </div>
    </div>
    <div style="padding-top: 10px; clear: both;">
    <input type="submit" name="applyFilter" value="<?php 
    echo __('Apply Filter');
    ?>
" />
    <input type="hidden" name="reportView" value="true" />
    </div>
    </form>
    </fieldset>
    <!-- filter end -->
    <div class="dataListHeader" style="padding: 3px;"><span id="pagingBox"></span></div>
示例#6
0
 // string element
 $str_input = simbio_form_element::selectList('publisherID', $publ_options, '', 'style="width: 50%;"');
 $str_input .= '&nbsp;';
 $str_input .= simbio_form_element::textField('text', 'publ_search_str', $rec_d['publisher_name'], 'style="width: 45%;" onkeyup="' . $ajax_exp . '"');
 $form->addAnything(__('Publisher'), $str_input);
 // biblio publish year
 $form->addTextField('text', 'year', __('Publishing Year'), $rec_d['publish_year'], 'style="width: 40%;"');
 // biblio publish place
 // AJAX expression
 $ajax_exp = "ajaxFillSelect('" . SENAYAN_WEB_ROOT_DIR . "admin/AJAX_lookup_handler.php', 'mst_place', 'place_id:place_name', 'placeID', \$('plc_search_str').val())";
 // string element
 if ($rec_d['place_name']) {
     $plc_options[] = array($rec_d['publish_place_id'], $rec_d['place_name']);
 }
 $plc_options[] = array('0', __('Publishing Place'));
 $str_input = simbio_form_element::selectList('placeID', $plc_options, '', 'style="width: 50%;"');
 $str_input .= '&nbsp;';
 $str_input .= simbio_form_element::textField('text', 'plc_search_str', $rec_d['place_name'], 'style="width: 45%;" onkeyup="' . $ajax_exp . '"');
 $form->addAnything(__('Publishing Place'), $str_input);
 // biblio collation
 $form->addTextField('text', 'collation', __('Collation'), $rec_d['collation'], 'style="width: 40%;"');
 // biblio series title
 $form->addTextField('textarea', 'seriesTitle', __('Series Title'), $rec_d['series_title'], 'rows="1" style="width: 100%;"');
 // biblio call_number
 $form->addTextField('text', 'callNumber', __('Call Number'), $rec_d['call_number'], 'style="width: 40%;"');
 // biblio topics
 $str_input = '<div class="' . $visibility . '"><a class="notAJAX"  href="javascript: openHTMLpop(\'' . MODULES_WEB_ROOT_DIR . 'bibliography/pop_topic.php?biblioID=' . $rec_d['biblio_id'] . '\', 500, 200, \'' . __('Subjects/Topics') . '\')">' . __('Add Subject(s)') . '</a></div>';
 $str_input .= '<iframe name="topicIframe" id="topicIframe" class="borderAll" style="width: 100%; height: 70px;" src="' . MODULES_WEB_ROOT_DIR . 'bibliography/iframe_topic.php?biblioID=' . $rec_d['biblio_id'] . '&block=1"></iframe>';
 $form->addAnything(__('Subject(s)'), $str_input);
 // biblio language
 // get language data related to this record from database
示例#7
0
</script>
<!--reserve specific javascript functions end-->

<!--item loan form-->
<div style="padding: 5px; background-color: #ccc;">
    <form name="reserveForm" id="search" action="circulation_action.php" method="post" style="display: inline;">
        <?php 
echo __('Search Collection');
?>
 :<br />
        <?php 
// AJAX expression
$ajax_exp = "ajaxFillSelect('item_AJAX_lookup_handler.php', 'item', 'i.item_code:title', 'reserveItemID', \$('#bib_search_str').val())";
$biblio_options[] = array('0', 'Title');
echo simbio_form_element::textField('text', 'bib_search_str', '', 'style="width: 10%;" onkeyup="' . $ajax_exp . '"');
echo simbio_form_element::selectList('reserveItemID', $biblio_options, '', 'class="marginTop" style="width: 70%;"');
echo simbio_form_element::textField('submit', 'addReserve', __('Add Reserve'));
?>
    </form>
</div>
<!--item loan form end-->

<?php 
// check if there is member ID
if (isset($_SESSION['memberID'])) {
    $memberID = trim($_SESSION['memberID']);
    $reserve_list_q = $dbs->query("SELECT r.*, b.title FROM reserve AS r\r\n        LEFT JOIN biblio AS b ON r.biblio_id=b.biblio_id\r\n        WHERE r.member_id='{$memberID}'");
    // create table object
    $reserve_list = new simbio_table();
    $reserve_list->table_attr = 'align="center" style="width: 100%;" cellpadding="3" cellspacing="0"';
    $reserve_list->table_header_attr = 'class="dataListHeader" style="font-weight: bold;"';
示例#8
0
    $supplier_options[] = array('0', __('Not Applicable'));
    while ($supplier_d = $supplier_q->fetch_row()) {
        $supplier_options[] = array($supplier_d[0], $supplier_d[1]);
    }
    $form->addSelectList('supplierID', __('Supplier'), $supplier_options, $rec_d['supplier_id']);
    // item source
    $source_options[] = array('1', __('Buy'));
    $source_options[] = array('2', __('Prize/Grant'));
    $form->addRadio('source', __('Source'), $source_options, !empty($rec_d['source']) ? $rec_d['source'] : '1');
    // item invoice
    $form->addTextField('text', 'invoice', __('Invoice'), $rec_d['invoice'], 'style="width: 100%;"');
    // invoice date
    $form->addDateField('invcDate', __('Invoice Date'), $rec_d['invoice_date'] ? $rec_d['invoice_date'] : date('Y-m-d'));
    // price
    $str_input = simbio_form_element::textField('text', 'price', !empty($rec_d['price']) ? $rec_d['price'] : '0', 'style="width: 40%;"');
    $str_input .= simbio_form_element::selectList('priceCurrency', $sysconf['currencies'], $rec_d['price_currency']);
    $form->addAnything(__('Price'), $str_input);
    // edit mode messagge
    if ($form->edit_mode) {
        echo '<div class="infoBox">' . __('You are going to edit Item data') . ': <b>' . $rec_d['title'] . '</b> ' . '<br />' . __('Last Updated') . ' ' . $rec_d['last_update'];
        echo '</div>' . "\n";
    }
    // print out the form object
    echo $form->printOut();
} else {
    require SIMBIO_BASE_DIR . 'simbio_UTILS/simbio_tokenizecql.inc.php';
    require LIB_DIR . 'biblio_list_model.inc.php';
    if ($sysconf['index']['type'] == 'default' || isset($_GET['searchby']) && $_GET['searchby'] == 'item') {
        require LIB_DIR . 'biblio_list.inc.php';
        $title_field_idx = 1;
        // callback function to show title and authors in datagrid
示例#9
0
 // 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 .= '&nbsp;';
 $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', '');
 if ($rec_d['publisher_id']) {
     $publ_q = $dbs->query(sprintf('SELECT publisher_id, publisher_name FROM mst_publisher WHERE publisher_id=%d', $rec_d['publisher_id']));
     while ($publ_d = $publ_q->fetch_row()) {
         $publ_options[] = array($publ_d[0], $publ_d[1]);
     }
 }
 $form->addSelectList('publisherID', __('Publisher'), $publ_options, $rec_d['publisher_id'], 'class="select2" data-src="' . SWB . 'admin/AJAX_lookup_handler.php?format=json&allowNew=true" data-src-table="mst_publisher" data-src-cols="publisher_id:publisher_name"');
 // biblio publish year
示例#10
0
 // biblio call_number
 $form->addTextField('text', 'callNumber', __('Call Number'), $rec_d['call_number'], 'style="width: 40%;"');
 // biblio topics
 $str_input = '<div class="' . $visibility . '"><a class="notAJAX button" href="javascript: openHTMLpop(\'' . MODULES_WEB_ROOT_DIR . 'bibliography/pop_topic.php?biblioID=' . $rec_d['biblio_id'] . '\', 500, 200, \'' . __('Subjects/Topics') . '\')">' . __('Add Subject(s)') . '</a></div>';
 $str_input .= '<iframe name="topicIframe" id="topicIframe" class="borderAll" style="width: 100%; height: 70px;" src="' . MODULES_WEB_ROOT_DIR . 'bibliography/iframe_topic.php?biblioID=' . $rec_d['biblio_id'] . '&block=1"></iframe>';
 $form->addAnything(__('Subject(s)'), $str_input);
 // biblio classification
 $cls_options = array();
 // AJAX expression
 $ajax_exp = "ajaxFillSelect('" . SENAYAN_WEB_ROOT_DIR . "admin/AJAX_lookup_handler.php', 'mst_topic', 'classification:classification:topic', 'class', \$('#class_search_str').val())";
 // string element
 if ($rec_d['classification']) {
     $cls_options[] = array($rec_d['classification'], $rec_d['classification']);
 }
 $plc_options[] = array('0', __('Classification'));
 $str_input = simbio_form_element::selectList('class', $cls_options, '', 'style="width: 50%;"');
 $str_input .= '&nbsp;';
 $str_input .= simbio_form_element::textField('text', 'class_search_str', $rec_d['classification'], 'style="width: 45%;" onkeyup="' . $ajax_exp . '"');
 $form->addAnything(__('Classification'), $str_input);
 // biblio 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('languageID', __('Language'), $lang_options, $rec_d['language_id']);
 // biblio note
 $form->addTextField('textarea', 'notes', __('Abstract/Notes'), $rec_d['notes'], 'style="width: 100%;" rows="2"');
 // biblio cover image
 if (!trim($rec_d['image'])) {