本文整理汇总了PHP中simbio_form_table_AJAX类的典型用法代码示例。如果您正苦于以下问题:PHP simbio_form_table_AJAX类的具体用法?PHP simbio_form_table_AJAX怎么用?PHP simbio_form_table_AJAX使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了simbio_form_table_AJAX类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: die
</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_AJAX('mainForm', $_SERVER['PHP_SELF'] . '?' . $_SERVER['QUERY_STRING'], 'post');
$form->submit_button_attr = 'name="saveData" value="' . __('Save') . '" class="button"';
// form table attributes
$form->table_attr = 'align="center" id="dataList" cellpadding="5" cellspacing="0"';
$form->table_header_attr = 'class="alterCell" style="font-weight: bold;"';
$form->table_content_attr = 'class="alterCell2"';
// edit mode flag set
if ($rec_q->num_rows > 0) {
$form->edit_mode = true;
// record ID for delete process
$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"';
}
示例2: __
echo __('Search');
?>
" class="button" />
</form>
</div>
</fieldset>
<?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 user_group WHERE group_id=' . $itemID);
$rec_d = $rec_q->fetch_assoc();
// create new instance
$form = new simbio_form_table_AJAX('mainForm', $_SERVER['PHP_SELF'] . '?' . $_SERVER['QUERY_STRING'], 'post');
$form->submit_button_attr = 'name="saveData" value="' . __('Save') . '" class="button"';
// form table attributes
$form->table_attr = 'align="center" id="dataList" cellpadding="5" cellspacing="0"';
$form->table_header_attr = 'class="alterCell" style="font-weight: bold;"';
$form->table_content_attr = 'class="alterCell2"';
// 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"';
}
示例3: die
</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 = $dbs->escape_string(trim(isset($_POST['itemID']) ? $_POST['itemID'] : ''));
$rec_q = $dbs->query("SELECT * FROM member WHERE member_id='{$itemID}'");
$rec_d = $rec_q->fetch_assoc();
// create new instance
$form = new simbio_form_table_AJAX('mainForm', $_SERVER['PHP_SELF'] . '?' . $_SERVER['QUERY_STRING'], 'post');
$form->submit_button_attr = 'name="saveData" value="' . __('Save') . '" class="button"';
// form table attributes
$form->table_attr = 'align="center" id="dataList" cellpadding="5" cellspacing="0"';
$form->table_header_attr = 'class="alterCell" style="font-weight: bold;"';
$form->table_content_attr = 'class="alterCell2"';
// 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_name'];
// submit button attribute
$form->submit_button_attr = 'name="saveData" value="' . __('Update') . '" class="button"';
}
示例4: die
</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_AJAX('mainForm', $_SERVER['PHP_SELF'] . '?' . $_SERVER['QUERY_STRING'], 'post');
$form->submit_button_attr = 'name="saveData" value="' . __('Save') . '" class="button"';
// form table attributes
$form->table_attr = 'align="center" id="dataList" cellpadding="5" cellspacing="0"';
$form->table_header_attr = 'class="alterCell" style="font-weight: bold;"';
$form->table_content_attr = 'class="alterCell2"';
// edit mode flag set
if ($rec_q->num_rows > 0) {
$form->edit_mode = true;
// record ID for delete process
$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"';
}
示例5: die
</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_AJAX('mainForm', $_SERVER['PHP_SELF'] . '?' . $_SERVER['QUERY_STRING'], 'post');
$form->submit_button_attr = 'name="saveData" value="' . __('Save') . '" class="button"';
// form table attributes
$form->table_attr = 'align="center" id="dataList" cellpadding="5" cellspacing="0"';
$form->table_header_attr = 'class="alterCell" style="font-weight: bold;"';
$form->table_content_attr = 'class="alterCell2"';
// edit mode flag set
if ($rec_q->num_rows > 0) {
$form->edit_mode = true;
// record ID for delete process
$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"';
}
示例6: __
}
?>
<fieldset class="menuBox">
<div class="menuBoxInner exportIcon">
<?php
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
示例7: die
</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_AJAX('mainForm', $_SERVER['PHP_SELF'] . '?' . $_SERVER['QUERY_STRING'], 'post');
$form->submit_button_attr = 'name="saveData" value="' . __('Save') . '" class="button"';
// form table attributes
$form->table_attr = 'align="center" id="dataList" cellpadding="5" cellspacing="0"';
$form->table_header_attr = 'class="alterCell" style="font-weight: bold;"';
$form->table_content_attr = 'class="alterCell2"';
// edit mode flag set
if ($rec_q->num_rows > 0) {
$form->edit_mode = true;
// record ID for delete process
$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"';
}
示例8: die
</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_AJAX('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" id="dataList" cellpadding="5" cellspacing="0"';
$form->table_header_attr = 'class="alterCell" style="font-weight: bold;"';
$form->table_content_attr = 'class="alterCell2"';
// edit mode flag set
if ($rec_q->num_rows > 0) {
$form->edit_mode = true;
// record ID for delete process
$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"';
}
示例9: die
}
/* 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_AJAX('mainForm', $_SERVER['PHP_SELF'] . '?' . $_SERVER['QUERY_STRING'], 'post');
$form->submit_button_attr = 'name="saveData" value="' . __('Save') . '" 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"';
// 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;
示例10: die
/* 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;
$_sql_rec_q = sprintf('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=%d', $itemID);
$rec_q = $dbs->query($_sql_rec_q);
$rec_d = $rec_q->fetch_assoc();
// create new instance
$form = new simbio_form_table_AJAX('mainForm', $_SERVER['PHP_SELF'] . '?' . $_SERVER['QUERY_STRING'], 'post');
$form->submit_button_attr = 'name="saveData" value="' . __('Save') . '" class="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"';
$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);
示例11: die
/* 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_AJAX('mainForm', $_SERVER['PHP_SELF'] . '?' . $_SERVER['QUERY_STRING'], 'post');
$form->submit_button_attr = 'name="saveData" value="' . __('Save') . '" class="button"';
// form table attributes
$form->table_attr = 'align="center" id="dataList" cellpadding="5" cellspacing="0"';
$form->table_header_attr = 'class="alterCell" style="font-weight: bold;"';
$form->table_content_attr = 'class="alterCell2"';
// edit mode flag set
if ($rec_q->num_rows > 0) {
$form->edit_mode = true;
// record ID for delete process
if (!$in_pop_up) {
$form->record_id = $itemID;
} else {
$form->addHidden('updateRecordID', $itemID);
$form->back_button = false;
}
示例12: die
</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_AJAX('mainForm', $_SERVER['PHP_SELF'] . '?' . $_SERVER['QUERY_STRING'], 'post');
$form->submit_button_attr = 'name="saveData" value="' . __('Save') . '" class="button"';
// form table attributes
$form->table_attr = 'align="center" id="dataList" cellpadding="5" cellspacing="0"';
$form->table_header_attr = 'class="alterCell" style="font-weight: bold;"';
$form->table_content_attr = 'class="alterCell2"';
// edit mode flag set
if ($rec_q->num_rows > 0) {
$form->edit_mode = true;
// record ID for delete process
$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"';
}
示例13: die
</div>
</div>
</fieldset>
<?php
/* 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 content WHERE content_id=' . $itemID);
$rec_d = $rec_q->fetch_assoc();
// create new instance
$form = new simbio_form_table_AJAX('mainForm', $_SERVER['PHP_SELF'] . '?' . $_SERVER['QUERY_STRING'], 'post');
$form->submit_button_attr = 'name="saveData" value="' . __('Save') . '" class="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"';
// 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 = $rec_d['content_title'];
// submit button attribute
$form->submit_button_attr = 'name="saveData" value="' . __('Update') . '" class="btn btn-default"';
示例14: strtoupper
exit;
}
}
}
?>
<fieldset class="menuBox">
<div class="menuBoxInner importIcon">
<?php
echo strtoupper(lang_mod_membership_import_data) . '<hr />' . lang_mod_membership_import_data_description;
?>
</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="' . lang_mod_member_import_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) */
// csv files
$str_input = simbio_form_element::textField('file', 'importFile');
$str_input .= ' Maximum ' . $sysconf['max_upload'] . ' KB';
$form->addAnything(lang_mod_member_import_field_file . '*', $str_input);
// field separator
$form->addTextField('text', 'fieldSep', lang_mod_member_import_field_field_separator . '*', '' . htmlentities(',') . '', 'style="width: 10%;"');
// field enclosed
$form->addTextField('text', 'fieldEnc', lang_mod_member_import_field_field_enclosed . '*', '' . htmlentities('"') . '', 'style="width: 10%;"');
// number of records to import
示例15: die
</div>
</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_AJAX('mainForm', $_SERVER['PHP_SELF'] . '?' . $_SERVER['QUERY_STRING'], 'post');
$form->submit_button_attr = 'name="saveData" value="' . __('Save') . '" class="button"';
// form table attributes
$form->table_attr = 'align="center" id="dataList" cellpadding="5" cellspacing="0"';
$form->table_header_attr = 'class="alterCell" style="font-weight: bold;"';
$form->table_content_attr = 'class="alterCell2"';
// edit mode flag set
if ($rec_q->num_rows > 0) {
$form->edit_mode = true;
// record ID for delete process
$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"';
}