本文整理汇总了PHP中CFormTable::SetTableClass方法的典型用法代码示例。如果您正苦于以下问题:PHP CFormTable::SetTableClass方法的具体用法?PHP CFormTable::SetTableClass怎么用?PHP CFormTable::SetTableClass使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CFormTable
的用法示例。
在下文中一共展示了CFormTable::SetTableClass方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: CButton
}
$cb = new CButton('cancel', S_CANCEL);
$cb->SetType('button');
$cb->SetAction('javascript: self.close();');
$td = new CCol($cb);
$td->setAttribute('style', 'text-align:right;');
$table->SetFooter($td);
$form->AddItem($table);
$form->Show();
}
//-------------------------------------------- </CHILD SERVICES LIST> --------------------------------------------
//-------------------------------------------- <FORM> --------------------------------------------
if (isset($_REQUEST['sform'])) {
$frmService = new CFormTable(S_SERVICE, 'services_form.php', 'POST', null, 'sform');
$frmService->SetHelp("web.services.service.php");
$frmService->SetTableClass('formlongtable');
//service times
if (isset($_REQUEST["add_service_time"]) && isset($_REQUEST["new_service_time"])) {
$_REQUEST['service_times'] = get_request('service_times', array());
$new_service_time['type'] = $_REQUEST["new_service_time"]['type'];
if ($_REQUEST["new_service_time"]['type'] == SERVICE_TIME_TYPE_ONETIME_DOWNTIME) {
$new_service_time['from'] = $_REQUEST['new_service_time']['from'];
$new_service_time['to'] = $_REQUEST['new_service_time']['to'];
$new_service_time['note'] = $_REQUEST["new_service_time"]['note'];
} else {
$new_service_time['from'] = strtotime($_REQUEST["new_service_time"]['from_week'] . ' ' . $_REQUEST["new_service_time"]['from']);
$new_service_time['to'] = strtotime($_REQUEST["new_service_time"]['to_week'] . ' ' . $_REQUEST["new_service_time"]['to']);
$new_service_time['note'] = $_REQUEST["new_service_time"]['note'];
}
while ($new_service_time['to'] && $new_service_time['to'] <= $new_service_time['from']) {
$new_service_time['to'] += 7 * 24 * 3600;