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


PHP controlAdminForm::displayTable方法代码示例

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


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

示例1: array

<table width="100%" border="0" cellpadding="0" cellspacing="10" style="margin-bottom:50px">';
$name = 'status';
$values = array();
$values[] = array('name' => 'Hiện', 'id' => '1');
$values[] = array('name' => 'Ẩn', 'id' => '0');
if (!isset($_POST[$name])) {
    if ($rowDetail[$name] == '') {
        $valueCheck = 1;
    } else {
        $valueCheck = $rowDetail[$name];
    }
} else {
    $valueCheck = $_POST[$name];
}
$data = $cF->inputRadio($name, $values, $valueCheck, 'radio');
echo $cF->displayTable('Trạng thái', $data);
$name = 'name';
$properties = array();
$properties[] = array('propertie' => 'maxlength', 'value' => '100');
if (!isset($_POST[$name])) {
    $value = $rowDetail[$name];
} else {
    $value = $_POST[$name];
}
$data = $cF->inputText($name, $value, 'input_medium', $properties);
echo $cF->displayTable('Tên gói', $data);
$name = 'price';
$properties = array();
$properties[] = array('propertie' => 'maxlength', 'value' => '10');
if (!isset($_POST[$name])) {
    $value = $rowDetail[$name];
开发者ID:hieunhan1,项目名称:all-website4,代码行数:31,代码来源:admin_web_users_package_ac.php

示例2: array

<table width="100%" border="0" cellpadding="0" cellspacing="10" style="margin-bottom:50px">';
$name = 'status';
$values = array();
$values[] = array('name' => 'Hiện', 'id' => '1');
$values[] = array('name' => 'Ẩn', 'id' => '0');
if (!isset($_POST[$name])) {
    if ($rowDetail[$name] == '') {
        $valueCheck = 1;
    } else {
        $valueCheck = $rowDetail[$name];
    }
} else {
    $valueCheck = $_POST[$name];
}
$data = $cF->inputRadio($name, $values, $valueCheck, 'radio');
echo $cF->displayTable('Trạng thái', $data);
$name = 'menu_id';
$where = "(type_id=1 OR type_id=5)";
$values = $c->selectFromMenu($lang, $table, $where);
if (!isset($_POST[$name])) {
    $valueCheck = $rowDetail[$name];
} else {
    $valueCheck = $_POST[$name];
}
$data = $cF->inputCheckbox($name, $values, $valueCheck, 'checkboxItem', 1);
if (!isset($_POST[$name])) {
    $value = $rowDetail[$name];
} else {
    $value = $_POST[$name];
}
$data .= $cF->inputHidden($name, $value, 'input_medium valueChecksBox');
开发者ID:hieunhan1,项目名称:all-website4,代码行数:31,代码来源:admin_web_photo_ac.php

示例3: array

<table width="100%" border="0" cellpadding="0" cellspacing="10" style="margin-bottom:50px">';
$name = 'status';
$values = array();
$values[] = array('name' => 'Hiện', 'id' => '1');
$values[] = array('name' => 'Ẩn', 'id' => '0');
if (!isset($_POST[$name])) {
    if ($rowDetail[$name] == '') {
        $valueCheck = 1;
    } else {
        $valueCheck = $rowDetail[$name];
    }
} else {
    $valueCheck = $_POST[$name];
}
$data = $cF->inputRadio($name, $values, $valueCheck, 'radio');
echo $cF->displayTable('Trạng thái', $data);
if ($rowDetail['group_id'] != 3 && $id != 0) {
    echo $cF->displayTable('Ngày đăng ký', '<p style="color:#00F; font-weight:bold; margin-top:3px">' . $c->viewDatetime($rowDetail['datetime']) . '</p>');
    $name = 'date_expiration';
    $properties = array();
    $properties[] = array('propertie' => 'maxlength', 'value' => '30');
    if (!isset($_POST[$name])) {
        if ($rowDetail[$name] == 0) {
            $value = date('Y-m-d H:i', time());
        } else {
            $value = date('Y-m-d H:i', $rowDetail[$name]);
        }
    } else {
        $value = $_POST[$name];
    }
    $data = $cF->inputText($name, $value, 'input_large datetimepick', $properties);
开发者ID:hieunhan1,项目名称:all-website4,代码行数:31,代码来源:admin_web_users_ac.php

示例4: array

<table width="100%" border="0" cellpadding="0" cellspacing="10" style="margin-bottom:50px">';
$name = 'status';
$values = array();
$values[] = array('name' => 'Hiện', 'id' => '1');
$values[] = array('name' => 'Ẩn', 'id' => '0');
if (!isset($_POST[$name])) {
    if ($rowDetail[$name] == '') {
        $valueCheck = 1;
    } else {
        $valueCheck = $rowDetail[$name];
    }
} else {
    $valueCheck = $_POST[$name];
}
$data = $cF->inputRadio($name, $values, $valueCheck, 'radio');
echo $cF->displayTable('Trạng thái', $data);
/*$name = 'menu_id';
	$values = $c->selectFromMenu($lang, $table);
	if(!isset($_POST[$name])){
		$valueCheck=$rowDetail[$name];
	}else $valueCheck=$_POST[$name];
	$data = $cF->inputCheckbox($name, $values, $valueCheck, 'checkboxItem', 1);
	if(!isset($_POST[$name])) $value=$rowDetail[$name]; else $value=$_POST[$name];
    $data .= $cF->inputHidden($name, $value, 'input_medium valueChecksBox');
	echo $cF->displayTable('Danh mục', '<div class="listCheckboxMedium">'.$data.'</div>');*/
$name = 'position_id';
$values = $c->_model->_listSliderBannerPosition();
if (!isset($_POST[$name])) {
    $valueCheck = $rowDetail[$name];
} else {
    $valueCheck = $_POST[$name];
开发者ID:hieunhan1,项目名称:all-website4,代码行数:31,代码来源:admin_web_slider_banner_ac.php

示例5: controlAdminForm

<?php

$cF = new controlAdminForm();
$c->createEditData($table, $arrAction, $rowDetail);
echo '<form name="form_action" method="post" action="">
<table width="100%" border="0" cellpadding="0" cellspacing="10">';
$name = 'status';
$values = array();
$values[] = array('name' => 'Chưa phục hồi', 'id' => '0');
$values[] = array('name' => 'Đã phục hồi', 'id' => '1');
$valueCheck = $rowDetail[$name];
$data = $cF->inputRadio($name, $values, $valueCheck, 'radio');
echo $cF->displayTable('Trạng thái', $data);
echo $cF->displayTable('Date create', date('Y-m-d H:i:s', $rowDetail['datetime']));
echo $cF->displayTable('User create', $rowDetail['username']);
echo $cF->displayTable('Mô tả', $rowDetail['name']);
echo $cF->displayTable('Action', $rowDetail['action']);
echo $cF->displayTable('Table', $rowDetail['table']);
$btnSubmit = '';
if ($rowDetail['action'] == 'update' || $rowDetail['action'] == 'delete') {
    if ($rowDetail['status'] == 1) {
        echo $cF->displayTable('Date restore', date('Y-m-d H:i:s', $rowDetail['date_restore']));
        echo $cF->displayTable('User restore', $rowDetail['user_restore']);
    } else {
        $name = 'btn_view_log';
        $btnSubmit = $cF->inputButton($name, 'View log', 'submit');
    }
} elseif ($rowDetail['action'] == 'status') {
    echo $cF->displayTable('Values', $rowDetail['content']);
}
$name = 'btnCancel';
开发者ID:hieunhan1,项目名称:all-website4,代码行数:31,代码来源:admin_web_logs_ac.php

示例6: array

<table width="100%" border="0" cellpadding="0" cellspacing="10" style="margin-bottom:50px">';
$name = 'status';
$values = array();
$values[] = array('name' => 'Hiện', 'id' => '1');
$values[] = array('name' => 'Ẩn', 'id' => '0');
if (!isset($_POST[$name])) {
    if ($rowDetail[$name] == '') {
        $valueCheck = 1;
    } else {
        $valueCheck = $rowDetail[$name];
    }
} else {
    $valueCheck = $_POST[$name];
}
$data = $cF->inputRadio($name, $values, $valueCheck, 'radio');
echo $cF->displayTable('Trạng thái', $data);
$name = 'datetime';
$properties = array();
$properties[] = array('propertie' => 'maxlength', 'value' => '100');
if (!isset($_POST[$name])) {
    if ($rowDetail[$name] == 0) {
        $value = date('Y-m-d H:i', time());
    } else {
        $value = date('Y-m-d H:i', $rowDetail[$name]);
    }
} else {
    $value = $_POST[$name];
}
$data = $cF->inputText($name, $value, 'input_large datetimepick', $properties);
echo $cF->displayTable('Ngày', $data);
$name = 'menu_id';
开发者ID:hieunhan1,项目名称:all-website4,代码行数:31,代码来源:admin_web_product_ac.php

示例7: controlAdminForm

<?php 
$cF = new controlAdminForm();
$id = $c->createEditData($table, $arrAction, $rowHeader);
echo '<div id="tableName" style="display:none">' . $table . '</div>
<table width="100%" border="0" cellpadding="0" cellspacing="10" style="margin-bottom:50px">';
$name = 'status';
$values = array();
$values[] = array('name' => 'Hiện', 'id' => '1');
$values[] = array('name' => 'Ẩn', 'id' => '0');
if ($rowHeader[$name] == '') {
    $valueCheck = 1;
} else {
    $valueCheck = $rowHeader[$name];
}
$data = $cF->inputRadio($name, $values, $valueCheck, 'radio');
echo $cF->displayTable('Trạng thái', $data);
$name = 'datetime';
$properties = array();
$properties[] = array('propertie' => 'maxlength', 'value' => '16');
if ($rowHeader[$name] == 0) {
    $value = date('Y-m-d H:i', time());
} else {
    $value = date('Y-m-d H:i', $rowHeader[$name]);
}
$data = $cF->inputText($name, $value, 'input_large datetimepick', $properties);
echo $cF->displayTable('Ngày', $data);
$name = 'menu_id';
$where = "(type_id=1 OR type_id=2 OR type_id=3)";
$values = $c->menuList($lang, $where);
$valueCheck = $rowHeader[$name];
$data = $cF->inputCheckbox($name, $values, $valueCheck, 'checkBoxMenuID', 1);
开发者ID:hieunhan1,项目名称:all-website-v5,代码行数:31,代码来源:admin_header_slider_ac.php

示例8: controlAdminForm

<?php 
$cF = new controlAdminForm();
$id = $c->createEditData($table, $arrAction, $rowHeader);
echo '<div id="tableName" style="display:none">' . $table . '</div>
<table width="100%" border="0" cellpadding="0" cellspacing="10" style="margin-bottom:50px">';
$name = 'status';
$values = array();
$values[] = array('name' => 'Hiện', 'id' => '1');
$values[] = array('name' => 'Ẩn', 'id' => '0');
if ($rowHeader[$name] == '') {
    $valueCheck = 1;
} else {
    $valueCheck = $rowHeader[$name];
}
$data = $cF->inputRadio($name, $values, $valueCheck, 'radio');
echo $cF->displayTable('Trạng thái', $data);
$name = 'datetime';
$properties = array();
$properties[] = array('propertie' => 'maxlength', 'value' => '16');
if ($rowHeader[$name] == 0) {
    $value = date('Y-m-d H:i', time());
} else {
    $value = date('Y-m-d H:i', $rowHeader[$name]);
}
$data = $cF->inputText($name, $value, 'input_large datetimepick', $properties);
echo $cF->displayTable('Ngày', $data);
$name = 'name';
$properties = array();
$properties[] = array('propertie' => 'maxlength', 'value' => '200');
$value = $rowHeader[$name];
$data = $cF->inputText($name, $value, 'input_medium', $properties);
开发者ID:hieunhan1,项目名称:all-website-v5,代码行数:31,代码来源:admin_header_menu_ac.php

示例9: array

<table width="100%" border="0" cellpadding="0" cellspacing="10" style="margin-bottom:50px">';
$name = 'status';
$values = array();
$values[] = array('name' => 'Hiện', 'id' => '1');
$values[] = array('name' => 'Ẩn', 'id' => '0');
if (!isset($_POST[$name])) {
    if ($rowDetail[$name] == '') {
        $valueCheck = 1;
    } else {
        $valueCheck = $rowDetail[$name];
    }
} else {
    $valueCheck = $_POST[$name];
}
$data = $cF->inputRadio($name, $values, $valueCheck, 'radio');
echo $cF->displayTable('Trạng thái', $data);
$name = 'position_id';
$values = $c->_model->_listMenuPosition();
if (!isset($_POST[$name])) {
    $valueCheck = $rowDetail[$name];
} else {
    $valueCheck = $_POST[$name];
}
$data = $cF->inputCheckbox($name, $values, $valueCheck, 'checkboxItem', 1);
if (!isset($_POST[$name])) {
    $value = $rowDetail[$name];
} else {
    $value = $_POST[$name];
}
$data .= $cF->inputHidden($name, $value, 'input_medium valueChecksBox');
echo $cF->displayTable('Vị trí hiển thị', $data);
开发者ID:hieunhan1,项目名称:all-website4,代码行数:31,代码来源:admin_web_menu_ac.php

示例10: controlAdminForm

<?php

$cF = new controlAdminForm();
$c->createEditData($table, $arrAction, $rowDetail);
echo '<form name="form_action" method="post" action="">
<table width="100%" border="0" cellpadding="0" cellspacing="10" style="margin-bottom:50px">';
echo $cF->displayTable('Ngày liên hệ', '<p style="color:#00F; font-weight:bold; margin-top:3px">' . $c->viewDatetime($rowDetail['datetime']) . '</p>');
$name = 'status';
$values = array();
$values[] = array('name' => 'Chưa gửi', 'id' => '0');
$values[] = array('name' => 'Đã gửi', 'id' => '2');
$values[] = array('name' => 'Đã xem', 'id' => '1');
if (!isset($_POST[$name])) {
    if ($rowDetail[$name] == '') {
        $valueCheck = 0;
    } else {
        $valueCheck = $rowDetail[$name];
    }
} else {
    $valueCheck = $_POST[$name];
}
$data = $cF->inputRadio($name, $values, $valueCheck, 'radio');
echo $cF->displayTable('Trạng thái', $data);
$name = 'nhanvien_lienhe';
$values = $c->_model->_listDanhSachNhanVien();
array_unshift($values, array('name' => '-- chọn nhân viên --', 'id' => ''));
if (!isset($_POST[$name])) {
    $valueCheck = $rowDetail[$name];
} else {
    $valueCheck = $_POST[$name];
}
开发者ID:hieunhan1,项目名称:all-website4,代码行数:31,代码来源:admin_web_contact_ac.php

示例11: array

echo $data;
$name = 'tab_id';
$values = $adA->_model->_listMenuTab();
if (!isset($_POST[$name])) {
    $valueCheck = $rowDetail[$name];
} else {
    $valueCheck = $_POST[$name];
}
$data = $cF->inputCheckbox($name, $values, $valueCheck, 'checkboxItemTab', 1);
if (!isset($_POST[$name])) {
    $value = $rowDetail[$name];
} else {
    $value = $_POST[$name];
}
$data .= $cF->inputHidden($name, $value, 'input_medium valueChecksBoxTab');
echo $cF->displayTable('Tab product', $data);
if ($id == 0 && $_REQUEST['parent'] == 0) {
    $name = 'parent';
    $data = $cF->inputHidden($name, '0');
    echo $data;
} else {
    $name = 'parent';
    $where = "`id`<>'{$id}'";
    $values = $adA->selectFromMenu($lang, $where);
    array_unshift($values, array('name' => '-- chọn danh mục gốc --', 'id' => '0'));
    if (isset($_REQUEST['parent'])) {
        $valueCheck = $_REQUEST['parent'];
    } else {
        $valueCheck = $rowDetail[$name];
    }
    $data = $cF->select($name, $values, $valueCheck, 'input_medium', 1);
开发者ID:hieunhan1,项目名称:all-website4,代码行数:31,代码来源:web_admin_menu.php

示例12: array

$values = array();
$values[] = array('name' => 'error', 'id' => '3');
$values[] = array('name' => 'check', 'id' => '2');
$values[] = array('name' => 'cancel', 'id' => '0');
$values[] = array('name' => 'success', 'id' => '1');
if (!isset($_POST[$name])) {
    if ($rowDetail[$name] == '') {
        $valueCheck = 1;
    } else {
        $valueCheck = $rowDetail[$name];
    }
} else {
    $valueCheck = $_POST[$name];
}
$data = $cF->inputRadio($name, $values, $valueCheck, 'radio');
echo $cF->displayTable('Trạng thái', $data);
$name = 'datetime';
$properties = array();
$properties[] = array('propertie' => 'maxlength', 'value' => '100');
if (!isset($_POST[$name])) {
    if ($rowDetail[$name] == 0) {
        $value = date('Y-m-d H:i', time());
    } else {
        $value = date('Y-m-d H:i', $rowDetail[$name]);
    }
} else {
    $value = $_POST[$name];
}
$data = $cF->inputText($name, $value, 'input_large datetimepick', $properties);
echo $cF->displayTable('Datetime', $data);
$name = 'name';
开发者ID:hieunhan1,项目名称:all-website4,代码行数:31,代码来源:admin_web_payment_ac.php

示例13: controlAdminForm

<?php

$cF = new controlAdminForm();
$c->createEditData($table, $arrAction, $rowDetail);
echo '<form name="form_action" method="post" action="">
<table width="100%" border="0" cellpadding="0" cellspacing="10" style="margin-bottom:50px">';
echo $cF->displayTable('Ngày liên hệ', $c->viewDatetime($rowDetail['datetime']));
$name = 'status';
$values = array();
$values[] = array('name' => 'Chưa xem', 'id' => '0');
$values[] = array('name' => 'Đã xem', 'id' => '1');
if (!isset($_POST[$name])) {
    if ($rowDetail[$name] == '') {
        $valueCheck = 1;
    } else {
        $valueCheck = $rowDetail[$name];
    }
} else {
    $valueCheck = $_POST[$name];
}
$data = $cF->inputRadio($name, $values, $valueCheck, 'radio');
echo $cF->displayTable('Trạng thái', $data);
$name = 'name';
$properties = array();
$properties[] = array('propertie' => 'maxlength', 'value' => '100');
if (!isset($_POST[$name])) {
    $value = $rowDetail[$name];
} else {
    $value = $_POST[$name];
}
$data = $cF->inputText($name, $value, 'input_medium', $properties);
开发者ID:hieunhan1,项目名称:all-website4,代码行数:31,代码来源:admin_web_contact_ac.php


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