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


PHP FormHandler::FieldEditElement方法代码示例

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


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

示例1: AddEditElement

$HD_Form -> FG_EDITION = true;
$HD_Form -> FG_DELETION = true;
$HD_Form -> FG_ADDITION = true;

$HD_Form -> AddEditElement (gettext("CIDGROUPNAME"),
	"group_name",
	'$value',
	"INPUT",
	"size=30 maxlength=70",
	"9",
	gettext("Insert the CID Group Name "),
	"" , "", "", "", "" , "" , "" , "");


$HD_Form -> FieldEditElement ('group_name');


$HD_Form -> FG_INTRO_TEXT_EDITION= gettext("Modify the properties of the DID Group");
$HD_Form -> FG_INTRO_TEXT_ASK_DELETION = gettext("If you really want remove this")." ".$HD_Form->FG_INSTANCE_NAME.", ".gettext("click on the delete button.");
$HD_Form -> FG_INTRO_TEXT_ADD = gettext("you can add easily a new")." ".$HD_Form->FG_INSTANCE_NAME.".<br>".gettext("Fill the following fields and confirm by clicking on the button add.");


$HD_Form -> FG_INTRO_TEXT_ADITION = '';
$HD_Form -> FG_TEXT_ADITION_CONFIRMATION = gettext("Your new")." ".$HD_Form->FG_INSTANCE_NAME." ".gettext("has been inserted.")."<br>";


$HD_Form -> FG_BUTTON_EDITION_SRC = $HD_Form -> FG_BUTTON_ADITION_SRC  = Images_Path . "/cormfirmboton.gif";
$HD_Form -> FG_BUTTON_EDITION_BOTTOM_TEXT = $HD_Form -> FG_BUTTON_ADITION_BOTTOM_TEXT = gettext("Click 'Confirm Data' to continue");

开发者ID:nixonch,项目名称:a2billing,代码行数:28,代码来源:FG_var_outbound_cidgroup.php

示例2: gettext

$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 . "'";
}
$HD_Form->AddEditElement(gettext("CID"), "cid", '$value', "TEXTAREA", "cols=50 rows=4", "", gettext("Insert the CID"), "", "", "", "", "", "", "", gettext("Define the CallerID's. If you ADD a new CID, NOT an EDIT, you can define a range of CallerID. <br>80412340210-80412340218 would add all CID's between the range, whereas CIDs separated by a comma e.g. 80412340210,80412340212,80412340214 would only add the individual CID listed."));
$HD_Form->AddEditElement(gettext("CIDGROUP"), "outbound_cid_group", '$value', "SELECT", "", "", "", "sql", "cc_outbound_cid_group", "group_name, id", "", "", "%1", "", "");
$HD_Form->AddEditElement(gettext("ACTIVATED"), "activated", '1', "RADIOBUTTON", "", "", gettext("Choose if you want to activate this CallerID"), "", "", "", "Yes :1, - No:0", "", "", "", "");
$HD_Form->FieldEditElement('cid, outbound_cid_group, activated');
$HD_Form->FG_INTRO_TEXT_EDITION = '';
$HD_Form->FG_INTRO_TEXT_ASK_DELETION = gettext("If you really want remove this") . " " . $HD_Form->FG_INSTANCE_NAME . ", " . gettext("click on the delete button.");
$HD_Form->FG_INTRO_TEXT_ADD = gettext("you can add easily a new") . " " . $HD_Form->FG_INSTANCE_NAME . "<br>" . gettext("Fill the following fields and confirm by clicking on the button add.");
$HD_Form->FG_INTRO_TEXT_ADITION = '';
$HD_Form->FG_TEXT_ADITION_CONFIRMATION = gettext("Your new") . " " . $HD_Form->FG_INSTANCE_NAME . " " . gettext("has been inserted. <br>");
$HD_Form->FG_BUTTON_EDITION_SRC = $HD_Form->FG_BUTTON_ADITION_SRC = Images_Path . "/cormfirmboton.gif";
$HD_Form->FG_BUTTON_EDITION_BOTTOM_TEXT = $HD_Form->FG_BUTTON_ADITION_BOTTOM_TEXT = gettext("Click 'Confirm Data' to continue");
$HD_Form->FG_GO_LINK_AFTER_ACTION_ADD = $_SERVER['PHP_SELF'] . "?atmenu=document&stitle=Document&wh=AC&id=";
$HD_Form->FG_GO_LINK_AFTER_ACTION_EDIT = $_SERVER['PHP_SELF'] . "?atmenu=document&stitle=Document&wh=AC&id=";
$HD_Form->FG_GO_LINK_AFTER_ACTION_DELETE = $_SERVER['PHP_SELF'] . "?atmenu=document&stitle=Document&wh=AC&id=";
开发者ID:hellbound,项目名称:a2billing-mod,代码行数:31,代码来源:FG_var_outbound_cid.php


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