当前位置: 首页>>代码示例>>PHP>>正文


PHP vmCommonHTML::getSaveOrderButton方法代码示例

本文整理汇总了PHP中vmCommonHTML::getSaveOrderButton方法的典型用法代码示例。如果您正苦于以下问题:PHP vmCommonHTML::getSaveOrderButton方法的具体用法?PHP vmCommonHTML::getSaveOrderButton怎么用?PHP vmCommonHTML::getSaveOrderButton使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在vmCommonHTML的用法示例。


在下文中一共展示了vmCommonHTML::getSaveOrderButton方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: vmToolTip

?>
</option>
	<?php 
$ps_product_category->list_tree($category_id);
?>
</select>
<?php 
echo vmToolTip($VM_LANG->_('VM_PRODUCT_LIST_REORDER_TIP'));
// start the list table
$listObj->startTable();
// these are the columns in the table
$columns = array('#' => '', "<input type=\"checkbox\" name=\"toggle\" value=\"\" onclick=\"checkAll(" . $num_rows . ")\" />" => "", $VM_LANG->_('PHPSHOP_PRODUCT_LIST_NAME') => "width=\"30%\"", $VM_LANG->_('VM_PRODUCT_LIST_MEDIA') => 'width="5%"', $VM_LANG->_('PHPSHOP_PRODUCT_LIST_SKU') => "width=\"15%\"", $VM_LANG->_('PHPSHOP_PRODUCT_PRICE_TITLE') => "width=\"10%\"", $VM_LANG->_('PHPSHOP_CATEGORY') => "width=\"15%\"");
// Only show reordering fields when a category ID is selected AND a parent id is NOT selected!
if ($category_id && !$product_parent_id) {
    $columns[$VM_LANG->_('VM_FIELDMANAGER_REORDER')] = "width=\"5%\"";
    $columns[vmCommonHTML::getSaveOrderButton($num_rows, 'changeordering')] = 'width="8%"';
    $columns[$VM_LANG->_('PHPSHOP_MANUFACTURER_MOD')] = "width=\"10%\"";
} else {
    $columns[$VM_LANG->_('PHPSHOP_MANUFACTURER_MOD')] = "width=\"10%\"";
}
$columns[$VM_LANG->_('PHPSHOP_REVIEWS')] = "width=\"10%\"";
$columns[$VM_LANG->_('PHPSHOP_PRODUCT_LIST_PUBLISH')] = "";
$columns[$VM_LANG->_('PHPSHOP_PRODUCT_CLONE')] = "";
$columns[$VM_LANG->_('E_REMOVE')] = "width=\"5%\"";
$columns['Id'] = '';
$listObj->writeTableHeader($columns);
if ($num_rows > 0) {
    $i = 0;
    $db_cat = new ps_DB();
    $tmpcell = "";
    while ($db->next_record()) {
开发者ID:noikiy,项目名称:owaspbwa,代码行数:31,代码来源:product.product_list.php

示例2: array

$where = array();
if ($keyword != "") {
    $where[] = "(f.name LIKE '%{$keyword}%' OR f.type LIKE '%{$keyword}%')";
}
$db->setQuery("SELECT COUNT(*)" . "\nFROM #__{vm}_userfield AS f " . (count($where) ? "\nWHERE " . implode(' AND ', $where) : ""));
$total = $db->loadResult();
echo $db->getErrorMsg();
$pageNav = new vmPageNav($total, $limitstart, $limit);
// Create the List Object with page navigation
$listObj = new listFactory($pageNav);
// print out the search field and a list heading
$listObj->writeSearchHeader($VM_LANG->_('VM_MANAGE_USER_FIELDS'), $mosConfig_live_site . "/administrator/images/addusers.png", "admin", "user_field_list");
// start the list table
$listObj->startTable();
// these are the columns in the table
$columns = array("#" => "", "<input type=\"checkbox\" name=\"toggle\" value=\"\" onclick=\"checkAll(" . $pageNav->limit . ")\" />" => "", $VM_LANG->_('VM_FIELDMANAGER_NAME') => "width=\"20%\"", $VM_LANG->_('VM_FIELDMANAGER_TITLE') => "width=\"20%\"", $VM_LANG->_('VM_FIELDMANAGER_TYPE') => "width=\"10%\"", $VM_LANG->_('VM_FIELDMANAGER_REQUIRED') => "width=\"5%\"", $VM_LANG->_('VM_FIELDMANAGER_PUBLISHED') => "width=\"5%\"", $VM_LANG->_('VM_FIELDMANAGER_SHOW_ON_REGISTRATION') => "width=\"5%\"", $VM_LANG->_('VM_FIELDMANAGER_SHOW_ON_SHIPPING') => "width=\"5%\"", $VM_LANG->_('VM_FIELDMANAGER_SHOW_ON_ACCOUNT') => "width=\"5%\"", $VM_LANG->_('VM_FIELDMANAGER_REORDER') => "width=\"5%\"", vmCommonHTML::getSaveOrderButton(min($total - $pageNav->limitstart, $pageNav->limit), 'changeordering') => 'width="8%"', $VM_LANG->_('E_REMOVE') => "width=\"5%\"");
$listObj->writeTableHeader($columns);
$db->query("SELECT f.fieldid, f.sys, f.title, f.name, f.description, f.type, f.required, f.published, f.account, f.ordering, f.registration, f.shipping" . "\nFROM #__{vm}_userfield AS f" . (count($where) ? "\nWHERE " . implode(' AND ', $where) : "") . "\n ORDER BY f.ordering" . "\nLIMIT {$pageNav->limitstart}, {$pageNav->limit}");
// The list of fields which CAN'T BE UNPUBLISHED OR UNREQUIRED
$coreFields = array('username', 'email', 'password', 'password2');
$i = 0;
while ($db->next_record()) {
    $listObj->newRow();
    // The row number
    $listObj->addCell($pageNav->rowNumber($i));
    // The Checkbox
    $listObj->addCell(vmCommonHTML::idBox($i, $db->f("fieldid"), 0, "fieldid"));
    $listObj->addCell('<a href="' . $sess->url($_SERVER['PHP_SELF'] . '?page=admin.user_field_form&fieldid=' . $db->f('fieldid')) . '">' . $db->f('name') . '</a>');
    $lang_string = $db->f('title');
    if ($lang_string[0] == '_') {
        $lang_string = substr($lang_string, 1);
开发者ID:BackupTheBerlios,项目名称:kmit-svn,代码行数:31,代码来源:admin.user_field_list.php

示例3: array

$listObj->writeSearchHeader($VM_LANG->_('PHPSHOP_MODULE_LIST_LBL'), VM_THEMEURL . 'images/administration/dashboard/modules.png', "admin", "module_list");
// start the list table
$listObj->startTable();
// these are the columns in the table
$columns = array("#" => 'width="3%"', '<input type="checkbox" name="toggle" value="" onclick="checkAll(' . count($db->record) . ')" />' => 'width="3%"', $VM_LANG->_('PHPSHOP_MODULE_LIST_NAME') => 'width="20%"');
$usergroups = $vmUserGroup->get_groups();
while ($usergroups->next_record()) {
    $columns[$usergroups->f('group_name')] = 'width="5%"';
    $groupArray[] = $usergroups->f('group_name');
}
$columns['none'] = 'width="5%"';
$usergroups->reset();
$columns['<a href="javascript: document.adminForm.func.value = \'setModulePermissions\'; saveorder( ' . (count($db->record) - 1) . ' );"><img src="' . $mosConfig_live_site . '/administrator/images/filesave.png" border="0" width="16" height="16" alt="' . $VM_LANG->_('SAVE_PERMISSIONS') . '" align="left"/>' . $VM_LANG->_('SAVE_PERMISSIONS') . '</a>'] = '';
$columns[$VM_LANG->_('PHPSHOP_MODULE_LIST_FUNCTIONS')] = 'width="10%"';
$columns[$VM_LANG->_('VM_FIELDMANAGER_REORDER')] = "width=\"5%\"";
$columns[vmCommonHTML::getSaveOrderButton(count($db->record) - 1, 'changeordering')] = 'width="8%"';
$columns[$VM_LANG->_('E_REMOVE')] = "width=\"5%\"";
$listObj->writeTableHeader($columns);
$i = 0;
while ($db->next_record()) {
    $listObj->newRow();
    // The row number
    $listObj->addCell($pageNav->rowNumber($i));
    // The Checkbox
    $listObj->addCell(vmCommonHTML::idBox($i, $db->f("module_id"), false, "module_id"));
    $tmp_cell = "<a href=\"" . $sess->url($_SERVER['PHP_SELF'] . "?page={$modulename}.module_form&&limitstart={$limitstart}&module_id=" . $db->f("module_id")) . "\">";
    $tmp_cell .= $db->f("module_name") . "</a>";
    $listObj->addCell($tmp_cell);
    $module_perms = explode(',', $db->f("module_perms"));
    while ($usergroups->next_record()) {
        $checked = in_array($usergroups->f('group_name'), $module_perms) ? 'checked="checked"' : '';
开发者ID:noikiy,项目名称:owaspbwa,代码行数:31,代码来源:admin.module_list.php

示例4: vmPageNav

$row_list = $result['row_list'];
$depth_list = $result['depth_list'];
$categories = $result['category_tmp'];
// Create the Page Navigation
$pageNav = new vmPageNav($nrows, $limitstart, $limit);
for ($n = $pageNav->limitstart; $n < $nrows; $n++) {
    @$levelcounter[$categories[$row_list[$n]]["category_parent_id"]]++;
}
// Create the List Object with page navigation
$listObj = new listFactory($pageNav);
// print out the search field and a list heading
$listObj->writeSearchHeader($VM_LANG->_('PHPSHOP_CATEGORY_LIST_LBL'), VM_THEMEURL . 'images/administration/dashboard/categories.png', $modulename, "product_category_list");
// start the list table
$listObj->startTable();
// these are the columns in the table
$columns = array("#" => "width=\"20\"", "<input type=\"checkbox\" name=\"toggle\" value=\"\" onclick=\"checkAll(" . $pageNav->limit . ")\" />" => "width=\"20\"", $VM_LANG->_('PHPSHOP_CATEGORY_FORM_NAME') => 'width="25%"', $VM_LANG->_('PHPSHOP_CATEGORY_FORM_DESCRIPTION') => 'width="30%"', $VM_LANG->_('PHPSHOP_PRODUCTS_LBL') => 'width="10%"', $VM_LANG->_('PHPSHOP_PRODUCT_LIST_PUBLISH') => 'width="5%"', $VM_LANG->_('PHPSHOP_MODULE_LIST_ORDER') => 'width="7%"', vmCommonHTML::getSaveOrderButton(min($nrows - $pageNav->limitstart, $pageNav->limit)) => 'width="8%"', $VM_LANG->_('E_REMOVE') => "width=\"5%\"", 'Id' => '');
$listObj->writeTableHeader($columns);
$ibg = 0;
if ($pageNav->limit < $nrows) {
    if ($pageNav->limitstart + $pageNav->limit < $nrows) {
        $nrows = $pageNav->limitstart + $pageNav->limit;
    }
}
for ($n = $pageNav->limitstart; $n < $nrows; $n++) {
    if (!isset($row_list[$n])) {
        $row_list[$n] = $n;
    }
    if (!isset($depth_list[$n])) {
        $depth_list[$n] = 0;
    }
    $catname = shopMakeHtmlSafe($categories[$row_list[$n]]["category_name"]);
开发者ID:BackupTheBerlios,项目名称:kmit-svn,代码行数:31,代码来源:product.product_category_list.php


注:本文中的vmCommonHTML::getSaveOrderButton方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。