本文整理汇总了PHP中FormHandler::FieldViewElement方法的典型用法代码示例。如果您正苦于以下问题:PHP FormHandler::FieldViewElement方法的具体用法?PHP FormHandler::FieldViewElement怎么用?PHP FormHandler::FieldViewElement使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类FormHandler
的用法示例。
在下文中一共展示了FormHandler::FieldViewElement方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
$HD_Form->FG_FK_DELETE_OR_UPDATE = true;
$HD_Form -> FG_FK_WARNONLY = true;
$HD_Form -> FG_FK_TABLENAMES = array("cc_outbound_cid_list");
$HD_Form -> FG_FK_EDITION_CLAUSE = array(" outbound_cid_group ");
$HD_Form -> FG_FK_DELETE_MESSAGE = gettext("You have some CID using this CID Group! Please comfirm that you really want to remove this CID Group ? ");
$HD_Form -> AddViewElement(gettext("ID"), "id", "5%", "center", "sort");
$HD_Form -> AddViewElement(gettext("DIDGROUP NAME"), "group_name", "20%", "center", "sort");
$HD_Form -> AddViewElement(gettext("CREATION DATE"), "creationdate", "20%", "center", "sort", "30", "", "", "", "", "display_dateformat");
// added a parameter to append FG_TABLE_ID ( by default ) or disable 0.
$HD_Form -> FieldViewElement ('id, group_name, creationdate');
$HD_Form -> CV_NO_FIELDS = gettext("THERE IS NO ".strtoupper($HD_Form->FG_INSTANCE_NAME)." CREATED!");
$HD_Form -> CV_DISPLAY_LINE_TITLE_ABOVE_TABLE = false;
$HD_Form -> CV_TEXT_TITLE_ABOVE_TABLE = '';
$HD_Form -> CV_DISPLAY_FILTER_ABOVE_TABLE = false;
$HD_Form -> FG_EDITION = true;
$HD_Form -> FG_DELETION = true;
$HD_Form -> FG_ADDITION = true;
$HD_Form -> AddEditElement (gettext("CIDGROUPNAME"),
"group_name",
'$value',
"INPUT",
示例2: FieldViewElement
$FG_COL_QUERY_SUM=str_replace(' ','',$FG_COL_QUERY_SUM);
$FG_COL_QUERY_SUM=str_replace('sum(discount)','(1-sum(net_revenue)/sum(term_total))*100',$FG_COL_QUERY_SUM);
$FG_COL_QUERY_SUM=str_replace('sum(margin)','sum(profit)/sum(net_revenue)*100',$FG_COL_QUERY_SUM);
$FG_COL_QUERY_SUM=str_replace('name)',"'TOTAL'",$FG_COL_QUERY_SUM);
$HD_Form -> FG_TOTAL_TABLE_COL=19;
$HD_Form -> FG_DEBUG = 0;
$HD_Form -> FG_HTML_TABLE_WIDTH ="90%";
$HD_Form -> FG_TABLE_DEFAULT_SENS = "ASC";
$HD_Form -> FG_FILTER_SEARCH_SESSION_NAME = 'pnl_selection';
$HD_Form -> FG_FK_DELETE_CONFIRM = true;
$HD_Form -> FG_FK_DELETE_ALLOWED = true;
$HD_Form -> FieldViewElement ($FG_COL_QUERY);
$HD_Form -> CV_NO_FIELDS = gettext("NO INFO!");
$HD_Form -> CV_DISPLAY_LINE_TITLE_ABOVE_TABLE = false;
$HD_Form -> CV_TEXT_TITLE_ABOVE_TABLE = '';
$HD_Form -> CV_DISPLAY_FILTER_ABOVE_TABLE = false;
// Code here for adding the fields in the Export File
$HD_Form -> FieldExportElement($FG_COL_QUERY);
if (!($popup_select>=1)) $HD_Form -> FG_EXPORT_CSV = true;
if (!($popup_select>=1)) $HD_Form -> FG_EXPORT_XML = true;
$HD_Form -> FG_EXPORT_SESSION_VAR = "pr_export_pnl_report";
if (!isset($form_action)) $form_action="list"; //ask-add
if (!isset($action)) $action = $form_action;
示例3: FormHandler
getpost_ifset(array('id', 'cid', 'outbound_cid_group', 'activated'));
$HD_Form = new FormHandler("cc_outbound_cid_list", "cid");
$HD_Form->FG_DEBUG = 0;
$HD_Form->FG_TABLE_ID = "id";
$HD_Form->FG_TABLE_DEFAULT_ORDER = "cid";
$HD_Form->FG_TABLE_DEFAULT_SENS = "DESC";
$HD_Form->FG_LIST_ADDING_BUTTON1 = true;
$HD_Form->FG_LIST_ADDING_BUTTON_LINK1 = "A2B_entity_outbound_cid.php?form_action=ask-add&atmenu=cidgroup§ion=" . $_SESSION["menu_section"];
$HD_Form->FG_LIST_ADDING_BUTTON_ALT1 = $HD_Form->FG_LIST_ADDING_BUTTON_MSG1 = gettext("Add CallerID");
$HD_Form->FG_LIST_ADDING_BUTTON_IMG1 = Images_Path . "/server_connect.png";
$actived_list = Constants::getActivationList();
$HD_Form->AddViewElement(gettext("CID"), "cid", "30%", "center", "sort");
$HD_Form->AddViewElement(gettext("CIDGROUP"), "outbound_cid_group", "30%", "center", "sort", "15", "lie", "cc_outbound_cid_group", "group_name", "id='%id'", "%1");
$HD_Form->AddViewElement(gettext("STATUS"), "activated", "15%", "center", "sort", "", "list", $actived_list);
$HD_Form->FieldViewElement('cid, outbound_cid_group, activated');
$HD_Form->CV_NO_FIELDS = gettext("THERE ARE NO") . " " . strtoupper($HD_Form->FG_INSTANCE_NAME) . " " . gettext("CREATED!");
$HD_Form->CV_DISPLAY_LINE_TITLE_ABOVE_TABLE = false;
$HD_Form->CV_TEXT_TITLE_ABOVE_TABLE = '';
$HD_Form->CV_DISPLAY_FILTER_ABOVE_TABLE = false;
$HD_Form->FG_ADDITION = true;
$HD_Form->FG_EDITION = true;
$HD_Form->FG_DELETION = true;
$HD_Form->FG_SPLITABLE_FIELD = 'cid';
// TODO integrate in Framework
if ($form_action == "ask-add") {
$begin_date = date("Y");
$begin_date_plus = date("Y") + 25;
$end_date = date("-m-d H:i:s");
$comp_date = "value='" . $begin_date . $end_date . "'";
$comp_date_plus = "value='" . $begin_date_plus . $end_date . "'";