Exemplo n.º 1
0
</a>&nbsp;
    <a href="fines_list.php?balance=true" class="headerText2"><?php 
echo lang_mod_circ_tblheader_view_balanced_overdue;
?>
</a>
</div>
<?php 
/* search form end */
/* main content */
if (isset($_POST['detail']) or isset($_GET['action']) and $_GET['action'] == 'detail') {
    /* RECORD FORM */
    $itemID = (int) isset($_POST['itemID']) ? $_POST['itemID'] : 0;
    $rec_q = $dbs->query('SELECT * FROM fines WHERE fines_id=' . $itemID);
    $rec_d = $rec_q->fetch_assoc();
    // create new instance
    $form = new simbio_form_table('mainForm', $_SERVER['PHP_SELF'] . '?' . $_SERVER['QUERY_STRING'], 'post');
    $form->submit_button_attr = 'name="saveData" value="' . lang_sys_common_form_save_change . '" class="button"';
    // form table attributes
    $form->table_attr = 'align="center" id="dataList" style="width: 100%;" 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
        $form->record_id = $itemID;
        // delete button only showed for admin user
        if ($_SESSION['uid'] != 1) {
            $form->delete_button = false;
        }
        // form record title
Exemplo n.º 2
0
</div>
</fieldset>
<?php 
/* search form end */
/* main content */
if (isset($_POST['detail']) or isset($_GET['action']) and $_GET['action'] == 'detail') {
    if (!($can_read and $can_write)) {
        die('<div class="errorBox">' . __('You don\'t have enough privileges to view this section') . '</div>');
    }
    /* RECORD FORM */
    // try query
    $itemID = (int) isset($_POST['itemID']) ? $_POST['itemID'] : 0;
    $rec_q = $dbs->query('SELECT * FROM mst_loan_rules WHERE loan_rules_id=' . $itemID);
    $rec_d = $rec_q->fetch_assoc();
    // create new instance
    $form = new simbio_form_table('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" class="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
        // 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>
</div>
</fieldset>
<?php 
/* search form end */
/* main content */
if (isset($_POST['detail']) or isset($_GET['action']) and $_GET['action'] == 'detail') {
    if (!($can_read and $can_write)) {
        die('<div class="errorBox">' . __('You don\'t have enough privileges to access this area!') . '</div>');
    }
    /* RECORD FORM */
    $itemID = trim($dbs->escape_string(isset($_POST['itemID']) ? $_POST['itemID'] : ''));
    $rec_q = $dbs->query("SELECT * FROM mst_item_status WHERE item_status_id='{$itemID}'");
    $rec_d = $rec_q->fetch_assoc();
    // create new instance
    $form = new simbio_form_table('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" class="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
        $form->record_id = $itemID;
        // form record title
        $form->record_title = $rec_d['item_status_name'];
        // submit button attribute
        $form->submit_button_attr = 'name="saveData" value="' . __('Update') . '" class="button"';
    }
Exemplo n.º 4
0
        } else {
            utility::jsAlert(__('Subscription data FAILED to deleted!'));
        }
    }
}
/* RECORD OPERATION END */
// start the output buffering
ob_start();
/* main content */
if ($can_write and (isset($_POST['detail']) or isset($_GET['action']) and $_GET['action'] == 'detail')) {
    /* RECORD FORM */
    $itemID = (int) isset($_POST['itemID']) ? $_POST['itemID'] : 0;
    $rec_q = $dbs->query('SELECT * FROM serial WHERE serial_id=' . $itemID);
    $rec_d = $rec_q->fetch_assoc();
    // create new instance
    $form = new simbio_form_table('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" style="width: 100%;" 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
        $form->record_id = $itemID;
        // form record title
        $form->record_title = $rec_d['period'];
        // submit button attribute
        $form->submit_button_attr = 'name="saveData" value="' . __('Update') . '" class="button"';
    }
Exemplo n.º 5
0
    </form>
</div>
</fieldset>
<?php 
/* search form end */
/* main content */
if (isset($_POST['detail']) or isset($_GET['action']) and $_GET['action'] == 'detail') {
    if (!($can_read and $can_write)) {
        die('<div class="errorBox">' . __('You don\'t have enough privileges to access this area!') . '</div>');
    }
    /* RECORD FORM */
    $itemID = (int) isset($_POST['itemID']) ? $_POST['itemID'] : 0;
    $rec_q = $dbs->query('SELECT * FROM mst_supplier WHERE supplier_id=' . $itemID);
    $rec_d = $rec_q->fetch_assoc();
    // create new instance
    $form = new simbio_form_table('mainForm', $_SERVER['PHP_SELF'] . '?itemID=' . $itemID, 'post');
    $form->submit_button_attr = 'name="saveData" value="' . __('Save') . '" class="button"';
    // form table attributes
    $form->table_attr = 'align="center" class="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
        $form->record_id = $itemID;
        // form record title
        $form->record_title = $rec_d['supplier_name'];
        // submit button attribute
        $form->submit_button_attr = 'name="saveData" value="' . __('Update') . '" class="button"';
    }
Exemplo n.º 6
0
    </form>
</div>
</fieldset>
<?php 
/* search form end */
/* main content */
if (isset($_POST['detail']) or isset($_GET['action']) and $_GET['action'] == 'detail') {
    if (!($can_read and $can_write)) {
        die('<div class="errorBox">' . __('You don\'t have enough privileges to access this area!') . '</div>');
    }
    /* RECORD FORM */
    $itemID = (int) isset($_POST['itemID']) ? $_POST['itemID'] : 0;
    $rec_q = $dbs->query('SELECT * FROM mst_author WHERE author_id=' . $itemID);
    $rec_d = $rec_q->fetch_assoc();
    // create new instance
    $form = new simbio_form_table('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" class="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
        $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"';
    }
Exemplo n.º 7
0
    </form>
</div>
</fieldset>
<?php 
/* search form end */
/* main content */
if (isset($_POST['detail']) or isset($_GET['action']) and $_GET['action'] == 'detail') {
    if (!($can_read and $can_write)) {
        die('<div class="errorBox">' . __('You don\'t have enough privileges to access this area!') . '</div>');
    }
    /* RECORD FORM */
    $itemID = (int) isset($_POST['itemID']) ? $_POST['itemID'] : 0;
    $rec_q = $dbs->query('SELECT * FROM mst_place WHERE place_id=' . $itemID);
    $rec_d = $rec_q->fetch_assoc();
    // create new instance
    $form = new simbio_form_table('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" class="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
        $form->record_id = $itemID;
        // form record title
        $form->record_title = $rec_d['place_name'];
        // submit button attribute
        $form->submit_button_attr = 'name="saveData" value="' . __('Update') . '" class="button"';
    }
Exemplo n.º 8
0
?>
<fieldset class="menuBox">
<div class="menuBoxInner importIcon">
    <?php 
echo __('IMPORT TOOL');
?>
    <hr />
    <?php 
echo __('Import for bibliographics data from CSV file. For guide on CVS fields order and format please refer to documentation or visit <a href="http://senayan.diknas.go.id" target="_blank">Official Website</a>');
?>
</div>
</fieldset>
<div id="importInfo" class="infoBox" style="display: none;">&nbsp;</div><div id="importError" class="errorBox" style="display: none;">&nbsp;</div>
<?php 
// create new instance
$form = new simbio_form_table('mainForm', $_SERVER['PHP_SELF'], 'post');
$form->submit_button_attr = 'name="doImport" value="' . __('Import Now') . '" class="button"';
// form table attributes
$form->table_attr = 'align="center" class="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);
// 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
Exemplo n.º 9
0
        } else {
            utility::jsAlert(lang_mod_serial_subscription_alert_delete_failed);
        }
    }
}
/* RECORD OPERATION END */
// start the output buffering
ob_start();
/* main content */
if ($can_write and (isset($_POST['detail']) or isset($_GET['action']) and $_GET['action'] == 'detail')) {
    /* RECORD FORM */
    $itemID = (int) isset($_POST['itemID']) ? $_POST['itemID'] : 0;
    $rec_q = $dbs->query('SELECT * FROM serial WHERE serial_id=' . $itemID);
    $rec_d = $rec_q->fetch_assoc();
    // create new instance
    $form = new simbio_form_table('mainForm', $_SERVER['PHP_SELF'] . '?' . $_SERVER['QUERY_STRING'], 'post');
    $form->submit_button_attr = 'name="saveData" value="' . lang_sys_common_form_save_change . '" class="button"';
    // form table attributes
    $form->table_attr = 'align="center" id="dataList" style="width: 100%;" 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
        $form->record_id = $itemID;
        // form record title
        $form->record_title = $rec_d['period'];
        // submit button attribute
        $form->submit_button_attr = 'name="saveData" value="' . lang_sys_common_form_update . '" class="button"';
    }
Exemplo n.º 10
0
?>
system/holiday.php?mode=special&action=detail', 'get');" class="headerText2"><?php 
echo __('Add Special holiday');
?>
</a>
</div>
</fieldset>
<?php 
if (isset($_GET['mode'])) {
    if (isset($_POST['detail']) or isset($_GET['action']) and $_GET['action'] == 'detail') {
        /* SPECIAL HOLIDAY RECORD FORM */
        $itemID = (int) isset($_POST['itemID']) ? $_POST['itemID'] : 0;
        $rec_q = $dbs->query('SELECT * FROM holiday WHERE holiday_id=' . $itemID);
        $rec_d = $rec_q->fetch_assoc();
        // create new instance
        $form = new simbio_form_table('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" class="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
            $form->record_id = $itemID;
            // form record title
            $form->record_title = $rec_d['description'];
            // submit button attribute
            $form->submit_button_attr = 'name="saveData" value="' . __('Update') . '" class="button"';
        }
Exemplo n.º 11
0
" class="button" />
    </form>
</div>
</fieldset>
<?php 
/* search form end */
/* main content */
if (isset($_POST['detail']) or isset($_GET['action']) and $_GET['action'] == 'detail') {
    if (!($can_read and $can_write)) {
        die('<div class="errorBox">' . __('You don\'t have enough privileges to view this section') . '</div>');
    }
    $itemID = (int) isset($_POST['itemID']) ? $_POST['itemID'] : 0;
    $rec_q = $dbs->query("SELECT * FROM mst_coll_type WHERE coll_type_id={$itemID}");
    $rec_d = $rec_q->fetch_assoc();
    // create new instance
    $form = new simbio_form_table('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" class="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
        $form->record_id = $itemID;
        // form record title
        $form->record_title = $rec_d['coll_type_name'];
        // submit button attribute
        $form->submit_button_attr = 'name="saveData" value="' . __('Update') . '" class="button"';
    }
Exemplo n.º 12
0
    </form>
</div>
</fieldset>
<?php 
/* search form end */
/* main content */
if (isset($_POST['detail']) or isset($_GET['action']) and $_GET['action'] == 'detail') {
    if (!($can_read and $can_write)) {
        die('<div class="errorBox">' . __('You don\'t have enough privileges to view this section') . '</div>');
    }
    /* RECORD FORM */
    $itemID = (int) isset($_POST['itemID']) ? $_POST['itemID'] : 0;
    $rec_q = $dbs->query('SELECT * FROM user_group WHERE group_id=' . $itemID);
    $rec_d = $rec_q->fetch_assoc();
    // create new instance
    $form = new simbio_form_table('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" class="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
        $form->record_id = $itemID;
        // form record title
        $form->record_title = $rec_d['group_name'];
        // submit button attribute
        $form->submit_button_attr = 'name="saveData" value="' . __('Update') . '" class="button"';
    }
Exemplo n.º 13
0
} else {
    ?>
    <fieldset class="menuBox">
    <div class="menuBoxInner errorIcon">
    <strong style="color: #FF0000;"><?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('stockTakeForm', $_SERVER['PHP_SELF'], 'post');
    $form->submit_button_attr = 'value="' . __('Finish Stock Take') . '" class="button" style="color: #FF0000; border-color: #FF0000;"';
    // form table attributes
    $form->table_attr = 'align="center" class="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();
}
Exemplo n.º 14
0
    </form>
</div>
</fieldset>
<?php 
/* search form end */
/* main content */
if (isset($_POST['detail']) or isset($_GET['action']) and $_GET['action'] == 'detail') {
    if (!($can_read and $can_write)) {
        die('<div class="errorBox">' . __('You don\'t have enough privileges to access this area!') . '</div>');
    }
    /* RECORD FORM */
    $itemID = $dbs->escape_string(isset($_POST['itemID']) ? $_POST['itemID'] : '');
    $rec_q = $dbs->query("SELECT * FROM mst_location WHERE location_id='{$itemID}'");
    $rec_d = $rec_q->fetch_assoc();
    // create new instance
    $form = new simbio_form_table('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" class="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
        $form->record_id = $itemID;
        // form record title
        $form->record_title = $rec_d['location_name'];
        // submit button attribute
        $form->submit_button_attr = 'name="saveData" value="' . __('Update') . '" class="button"';
    }
Exemplo n.º 15
0
    </form>
</div>
</fieldset>
<?php 
/* search form end */
/* main content */
if (isset($_POST['detail']) or isset($_GET['action']) and $_GET['action'] == 'detail') {
    if (!($can_read and $can_write)) {
        die('<div class="errorBox">' . __('You don\'t have enough privileges to view this section') . '</div>');
    }
    /* RECORD FORM */
    $itemID = (int) isset($_POST['itemID']) ? $_POST['itemID'] : 0;
    $rec_q = $dbs->query('SELECT * FROM mst_gmd WHERE gmd_id=' . $itemID);
    $rec_d = $rec_q->fetch_assoc();
    // create new instance
    $form = new simbio_form_table('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" class="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
        $form->record_id = $itemID;
        // form record title
        $form->record_title = $rec_d['gmd_name'];
        // submit button attribute
        $form->submit_button_attr = 'name="saveData" value="' . __('Update') . '" class="button"';
    }
Exemplo n.º 16
0
    </form>
</div>
</fieldset>
<?php 
/* search form end */
/* main content */
if (isset($_POST['detail']) or isset($_GET['action']) and $_GET['action'] == 'detail') {
    if (!($can_read and $can_write)) {
        die('<div class="errorBox">' . __('You don\'t have enough privileges to view this section') . '</div>');
    }
    /* RECORD FORM */
    $itemID = (int) isset($_POST['itemID']) ? $_POST['itemID'] : 0;
    $rec_q = $dbs->query('SELECT * FROM mst_label WHERE label_id=' . $itemID);
    $rec_d = $rec_q->fetch_assoc();
    // create new instance
    $form = new simbio_form_table('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" class="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
        $form->record_id = $itemID;
        // form record title
        $form->record_title = str_ireplace('label-', '', $rec_d['label_name']);
        // submit button attribute
        $form->submit_button_attr = 'name="saveData" value="' . __('Update') . '" class="button"';
    }
Exemplo n.º 17
0
            }
        }
    }
    exit;
}
?>
<fieldset class="menuBox">
<div class="menuBoxInner exportIcon">
    <?php 
echo strtoupper(__('Export Data')) . '<hr />' . __('Export member(s) data to CSV file');
?>
</div>
</fieldset>
<?php 
// create new instance
$form = new simbio_form_table('mainForm', $_SERVER['PHP_SELF'] . '', 'post');
$form->submit_button_attr = 'name="doExport" value="' . __('Export Now') . '" class="button"';
// form table attributes
$form->table_attr = 'align="center" class="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%;"');
//  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
Exemplo n.º 18
0
    </form>
</div>
</fieldset>
<?php 
/* search form end */
/* main content */
if (isset($_POST['detail']) or isset($_GET['action']) and $_GET['action'] == 'detail') {
    if (!($can_read and $can_write)) {
        die('<div class="errorBox">' . __('You don\'t have enough privileges to view this section') . '</div>');
    }
    /* RECORD FORM */
    $itemID = (int) isset($_POST['itemID']) ? $_POST['itemID'] : 0;
    $rec_q = $dbs->query('SELECT * FROM mst_member_type WHERE member_type_id=' . $itemID);
    $rec_d = $rec_q->fetch_assoc();
    // create new instance
    $form = new simbio_form_table('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" class="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
        $form->record_id = $itemID;
        // form record title
        $form->record_title = $rec_d['member_type_name'];
        // submit button attribute
        $form->submit_button_attr = 'name="saveData" value="' . __('Update') . '" class="button"';
    }
Exemplo n.º 19
0
/* main content */
if (isset($_POST['detail']) or isset($_GET['action']) and $_GET['action'] == 'detail') {
    if (!($can_read and $can_write)) {
        die('<div class="errorBox">' . __('You are not authorized to view this section') . '</div>');
    }
    /* RECORD FORM */
    // try query
    $itemID = (int) isset($_POST['itemID']) ? $_POST['itemID'] : 0;
    $rec_q = $dbs->query('SELECT item.*, b.biblio_id, b.title, s.supplier_name
        FROM item
        LEFT JOIN biblio AS b ON item.biblio_id=b.biblio_id
        LEFT JOIN mst_supplier AS s ON item.supplier_id=s.supplier_id
        WHERE item_id=' . $itemID);
    $rec_d = $rec_q->fetch_assoc();
    // create new instance
    $form = new simbio_form_table('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" class="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;
        }
Exemplo n.º 20
0
        utility::writeLogs($dbs, 'staff', $_SESSION['uid'], 'bibliography', $_SESSION['realname'] . ' updating file attachment data');
    } else {
        if ($uploaded_file_id) {
            // add to session array
            $fdata['file_id'] = $uploaded_file_id;
            $fdata['access_type'] = trim($_POST['accessType']);
            $_SESSION['biblioAttach'][$uploaded_file_id] = $fdata;
            echo '<script type="text/javascript">';
            echo 'alert(\'' . lang_mod_biblio_attach_alert_added_ok . '\');';
            echo 'opener.setIframeContent(\'attachIframe\', \'' . MODULES_WEB_ROOT_DIR . 'bibliography/iframe_attach.php\');';
            echo '</script>';
        }
    }
}
// create new instance
$form = new simbio_form_table('mainForm', $_SERVER['PHP_SELF'] . '?biblioID=' . $biblioID, 'post');
$form->submit_button_attr = 'name="upload" value="' . lang_mod_biblio_attach_form_button_upload . '" 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"';
// query
$file_attach_q = $dbs->query("SELECT fl.*, batt.* FROM files AS fl\n    LEFT JOIN biblio_attachment AS batt ON fl.file_id=batt.file_id\n    WHERE batt.biblio_id={$biblioID} AND batt.file_id={$fileID}");
$file_attach_d = $file_attach_q->fetch_assoc();
// edit mode
if ($file_attach_d['biblio_id'] and $file_attach_d['file_id']) {
    $form->addHidden('updateBiblioID', $file_attach_d['biblio_id']);
    $form->addHidden('updateFileID', $file_attach_d['file_id']);
} else {
    if ($biblioID) {
        $form->addHidden('updateBiblioID', $biblioID);
Exemplo n.º 21
0
    </form>
</div>
</fieldset>
<?php 
/* search form end */
/* main content */
if (isset($_POST['detail']) or isset($_GET['action']) and $_GET['action'] == 'detail') {
    if (!($can_read and $can_write)) {
        die('<div class="errorBox">' . __('You don\'t have enough privileges to access this area!') . '</div>');
    }
    /* RECORD FORM */
    $itemID = $dbs->escape_string(trim(isset($_POST['itemID']) ? $_POST['itemID'] : ''));
    $rec_q = $dbs->query("SELECT * FROM mst_language WHERE language_id='{$itemID}'");
    $rec_d = $rec_q->fetch_assoc();
    // create new instance
    $form = new simbio_form_table('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" class="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
        $form->record_id = $itemID;
        // form record title
        $form->record_title = $rec_d['language_name'];
        // submit button attribute
        $form->submit_button_attr = 'name="saveData" value="' . __('Update') . '" class="button"';
    }
Exemplo n.º 22
0
    </form>
</div>
</fieldset>
<?php 
/* search form end */
/* main content */
if (isset($_POST['detail']) or isset($_GET['action']) and $_GET['action'] == 'detail') {
    if (!($can_read and $can_write)) {
        die('<div class="errorBox">' . __('You don\'t have enough privileges to view this section') . '</div>');
    }
    /* RECORD FORM */
    $itemID = (int) isset($_POST['itemID']) ? $_POST['itemID'] : 0;
    $rec_q = $dbs->query('SELECT * FROM mst_module WHERE module_id=' . $itemID);
    $rec_d = $rec_q->fetch_assoc();
    // create new instance
    $form = new simbio_form_table('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" class="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
        $form->record_id = $itemID;
        // form record title
        $form->record_title = $rec_d['module_name'];
        // submit button attribute
        $form->submit_button_attr = 'name="saveData" value="' . __('Update') . '" class="button"';
    }
Exemplo n.º 23
0
                 $update_total_q = $dbs->query('UPDATE stock_take SET total_item_stock_taked=' . $total_rows_d[0] . ', total_item_loan=' . $item_loan_d[0] . ', total_item_lost=' . $total_rows_d[0] . ", stock_take_users='" . $_SESSION['realname'] . "\n' WHERE stock_take_id={$stock_take_id}");
                 // write log
                 utility::writeLogs($dbs, 'staff', $_SESSION['uid'], 'stock_take', $_SESSION['realname'] . ' initialize stock take (' . $data['stock_take_name'] . ') from address ' . $_SERVER['REMOTE_ADDR']);
                 utility::jsAlert(__('Stock Taking Initialized'));
                 echo '<script type="text/javascript">parent.location.href = \'' . SENAYAN_WEB_ROOT_DIR . 'admin/index.php?mod=stock_take\';</script>';
             } else {
                 // delete stock take data
                 $dbs->query('DELETE FROM stock_take WHERE stock_take_id=' . $stock_take_id);
                 utility::jsAlert(__('Stock Taking FAILED to Initialized.\\nNo item to stock take!'));
             }
             exit;
         }
     }
 }
 // create new instance
 $form = new simbio_form_table('mainForm', $_SERVER['PHP_SELF'] . '?action=new', 'post');
 $form->submit_button_attr = 'name="saveData" value="' . __('Initialize Stock Take') . '" class="button"';
 // form table attributes
 $form->table_attr = 'align="center" class="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]);
 }
Exemplo n.º 24
0
    </form>
</div>
</fieldset>
<?php 
/* search form end */
/* main content */
if (isset($_POST['detail']) or isset($_GET['action']) and $_GET['action'] == 'detail') {
    if (!($can_read and $can_write)) {
        die('<div class="errorBox">' . __('You don\'t have enough privileges to view this section') . '</div>');
    }
    /* RECORD FORM */
    $itemID = (int) isset($_POST['itemID']) ? $_POST['itemID'] : 0;
    $rec_q = $dbs->query('SELECT * FROM mst_frequency WHERE frequency_id=' . $itemID);
    $rec_d = $rec_q->fetch_assoc();
    // create new instance
    $form = new simbio_form_table('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" class="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
        $form->record_id = $itemID;
        // form record title
        $form->record_title = $rec_d['frequency'];
        // submit button attribute
        $form->submit_button_attr = 'name="saveData" value="' . __('Update') . '" class="button"';
    }
Exemplo n.º 25
0
    <a href="fines_list.php?balance=true" class="btn btn-default"><i class="glyphicon glyphicon-list-alt"></i>&nbsp;<?php 
echo __('View Balanced Overdue');
?>
</a>
</div>
</div>
<?php 
/* search form end */
/* main content */
if (isset($_GET['detail']) && isset($_GET['itemID']) || isset($_GET['action']) && $_GET['action'] == 'detail') {
    /* RECORD FORM */
    $itemID = (int) isset($_GET['itemID']) ? $_GET['itemID'] : 0;
    $rec_q = $dbs->query('SELECT * FROM fines WHERE fines_id=' . $itemID);
    $rec_d = $rec_q->fetch_assoc();
    // create new instance
    $form = new simbio_form_table('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" style="width: 100%;" 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
        $form->record_id = $itemID;
        // delete button only showed for admin user
        if ($_SESSION['uid'] != 1) {
            $form->delete_button = false;
        }
        // form record title
Exemplo n.º 26
0
}
/* main content */
if (isset($_POST['detail']) or isset($_GET['action']) and $_GET['action'] == 'detail') {
    if (!($can_read and $can_write) and !$changecurrent) {
        die('<div class="errorBox">' . __('You don\'t have enough privileges to view this section') . '</div>');
    }
    /* RECORD FORM */
    // try query
    $itemID = (int) isset($_POST['itemID']) ? $_POST['itemID'] : 0;
    if ($changecurrent) {
        $itemID = (int) $_SESSION['uid'];
    }
    $rec_q = $dbs->query('SELECT * FROM user WHERE user_id=' . $itemID);
    $rec_d = $rec_q->fetch_assoc();
    // create new instance
    $form = new simbio_form_table('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" class="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;
Exemplo n.º 27
0
        utility::writeLogs($dbs, 'staff', $_SESSION['uid'], 'bibliography', $_SESSION['realname'] . ' updating file attachment data');
    } else {
        if ($uploaded_file_id) {
            // add to session array
            $fdata['file_id'] = $uploaded_file_id;
            $fdata['access_type'] = trim($_POST['accessType']);
            $_SESSION['biblioAttach'][$uploaded_file_id] = $fdata;
            echo '<script type="text/javascript">';
            echo 'alert(\'' . __('File Attachment uploaded succesfully!') . '\');';
            echo 'parent.setIframeContent(\'attachIframe\', \'' . MODULES_WEB_ROOT_DIR . 'bibliography/iframe_attach.php\');';
            echo '</script>';
        }
    }
}
// create new instance
$form = new simbio_form_table('mainForm', $_SERVER['PHP_SELF'] . '?biblioID=' . $biblioID, 'post');
$form->submit_button_attr = 'name="upload" value="' . __('Upload 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"';
// query
$file_attach_q = $dbs->query("SELECT fl.*, batt.* FROM files AS fl\r\n    LEFT JOIN biblio_attachment AS batt ON fl.file_id=batt.file_id\r\n    WHERE batt.biblio_id={$biblioID} AND batt.file_id={$fileID}");
$file_attach_d = $file_attach_q->fetch_assoc();
// edit mode
if ($file_attach_d['biblio_id'] and $file_attach_d['file_id']) {
    $form->addHidden('updateBiblioID', $file_attach_d['biblio_id']);
    $form->addHidden('updateFileID', $file_attach_d['file_id']);
} else {
    if ($biblioID) {
        $form->addHidden('updateBiblioID', $biblioID);
Exemplo n.º 28
0
}
/* main content */
if (isset($_POST['detail']) or isset($_GET['action']) and $_GET['action'] == 'detail') {
    if (!($can_read and $can_write)) {
        die('<div class="errorBox">' . __('You are not authorized to view this section') . '</div>');
    }
    /* RECORD FORM */
    // try query
    $itemID = (int) isset($_POST['itemID']) ? $_POST['itemID'] : 0;
    $rec_q = $dbs->query('SELECT b.*, p.publisher_name, pl.place_name FROM biblio AS b
        LEFT JOIN mst_publisher AS p ON b.publisher_id=p.publisher_id
        LEFT JOIN mst_place AS pl ON b.publish_place_id=pl.place_id
        WHERE biblio_id=' . $itemID);
    $rec_d = $rec_q->fetch_assoc();
    // create new instance
    $form = new simbio_form_table('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" class="formTable" 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);