本文整理匯總了PHP中CCGetParam函數的典型用法代碼示例。如果您正苦於以下問題:PHP CCGetParam函數的具體用法?PHP CCGetParam怎麽用?PHP CCGetParam使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。
在下文中一共展示了CCGetParam函數的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: users_AfterUpdate
function users_AfterUpdate(&$sender)
{
$users_AfterUpdate = true;
$Component =& $sender;
$Container =& CCGetParentContainer($sender);
global $users;
//Compatibility
//End users_AfterUpdate
//Custom Code @14-2A29BDB7
// -------------------------
$db = new clsDBconnection1();
if ($users->user_status_id->GetValue() == 2) {
$sql = "update users set user_status_id = 3 where users.user_id=" . CCGetParam("uid");
$db->query($sql);
$Result1 = $db->next_record();
} else {
if ($users->user_status_id->GetValue() == 3 or $users->user_status_id->GetValue() == 1) {
$sql = "update users set user_status_id = 2 where users.user_id=" . CCGetParam("uid");
$db->query($sql);
$Result1 = $db->next_record();
}
}
// -------------------------
//End Custom Code
//Close users_AfterUpdate @2-DE0947D6
return $users_AfterUpdate;
}
示例2: clsGridsent_newsletters
function clsGridsent_newsletters()
{
global $FileName;
$this->ComponentName = "sent_newsletters";
$this->Visible = True;
$this->Errors = new clsErrors();
$this->ds = new clssent_newslettersDataSource();
$this->PageSize = CCGetParam($this->ComponentName . "PageSize", "");
if (!is_numeric($this->PageSize) || !strlen($this->PageSize)) {
$this->PageSize = 20;
} else {
$this->PageSize = intval($this->PageSize);
}
$this->PageNumber = intval(CCGetParam($this->ComponentName . "Page", 1));
$this->SorterName = CCGetParam("sent_newslettersOrder", "");
$this->SorterDirection = CCGetParam("sent_newslettersDir", "");
$this->Detail = new clsControl(ccsLink, "Detail", "Detail", ccsText, "", CCGetRequestParam("Detail", ccsGet));
$this->newsletter_id = new clsControl(ccsLabel, "newsletter_id", "newsletter_id", ccsInteger, "", CCGetRequestParam("newsletter_id", ccsGet));
$this->datesent = new clsControl(ccsLabel, "datesent", "datesent", ccsInteger, "", CCGetRequestParam("datesent", ccsGet));
$this->Sorter_newsletter_id = new clsSorter($this->ComponentName, "Sorter_newsletter_id", $FileName);
$this->Sorter_datesent = new clsSorter($this->ComponentName, "Sorter_datesent", $FileName);
$this->sent_newsletters_Insert = new clsControl(ccsLink, "sent_newsletters_Insert", "sent_newsletters_Insert", ccsText, "", CCGetRequestParam("sent_newsletters_Insert", ccsGet));
$this->sent_newsletters_Insert->Parameters = CCGetQueryString("QueryString", array("newsletter_id", "ccsForm"));
$this->sent_newsletters_Insert->Page = "NewslettersMaintanence.php";
$this->Navigator = new clsNavigator($this->ComponentName, "Navigator", $FileName, 5, tpCentered);
}
示例3: Login_Button_DoLogin_OnClick
function Login_Button_DoLogin_OnClick(&$sender)
{
$Login_Button_DoLogin_OnClick = true;
$Component =& $sender;
$Container =& CCGetParentContainer($sender);
global $Login;
//Compatibility
//End Login_Button_DoLogin_OnClick
//Login @4-DE10C29C
global $CCSLocales;
global $Redirect;
if (!CCLoginUser($Container->username->Value, $Container->password->Value)) {
$Container->Errors->addError($CCSLocales->GetText("CCS_LoginError"));
$Container->password->SetValue("");
$Login_Button_DoLogin_OnClick = 0;
} else {
global $Redirect;
$seshmenu = "";
$glip = array("glyphicon-cog", "glyphicon-cog", "glyphicon-list", "glyphicon-folder-close", "glyphicon-usd", "glyphicon-gift", "glyphicon-time", "glyphicon-user", "glyphicon-log-in", "glyphicon-align-justify");
$DBhrcon_ = new clsDBhrcon();
$queryMD = "select p_module_id, code, description from p_module " . "where is_active='Y' order by listing_no";
$DBhrcon_->query($queryMD);
while ($DBhrcon_->next_record()) {
$seshmenu = $seshmenu . "<li><a href='../main/modul.php?p_module_id=" . $DBhrcon_->f("p_module_id") . "'" . "title='" . $DBhrcon_->f("code") . " " . $DBhrcon_->f("description") . "' target=''>" . "<i class='glyphicon " . $glip[$DBhrcon_->f("p_module_id")] . "' style='font-size: 32px; border:2px solid #ffffff; padding:3px'></i>";
}
$DBhrcon_->close();
CCSetSession("hmenu", $seshmenu);
$Redirect = CCGetParam("ret_link", $Redirect);
$Login_Button_DoLogin_OnClick = 1;
}
//End Login
//Close Login_Button_DoLogin_OnClick @3-0EB5DCFE
return $Login_Button_DoLogin_OnClick;
}
示例4: clsGridt_vat_setllementGrid
function clsGridt_vat_setllementGrid($RelativePath, &$Parent)
{
global $FileName;
global $CCSLocales;
global $DefaultDateFormat;
$this->ComponentName = "t_vat_setllementGrid";
$this->Visible = True;
$this->Parent =& $Parent;
$this->RelativePath = $RelativePath;
$this->Errors = new clsErrors();
$this->ErrorBlock = "Grid t_vat_setllementGrid";
$this->Attributes = new clsAttributes($this->ComponentName . ":");
$this->DataSource = new clst_vat_setllementGridDataSource($this);
$this->ds =& $this->DataSource;
$this->PageSize = CCGetParam($this->ComponentName . "PageSize", "");
if (!is_numeric($this->PageSize) || !strlen($this->PageSize)) {
$this->PageSize = 5;
} else {
$this->PageSize = intval($this->PageSize);
}
if ($this->PageSize > 100) {
$this->PageSize = 100;
}
if ($this->PageSize == 0) {
$this->Errors->addError("<p>Form: Grid " . $this->ComponentName . "<br>Error: (CCS06) Invalid page size.</p>");
}
$this->PageNumber = intval(CCGetParam($this->ComponentName . "Page", 1));
if ($this->PageNumber <= 0) {
$this->PageNumber = 1;
}
$this->DLink =& new clsControl(ccsLink, "DLink", "DLink", ccsText, "", CCGetRequestParam("DLink", ccsGet, NULL), $this);
$this->DLink->HTML = true;
$this->DLink->Page = "t_vat_setllement_ro_order2.php";
$this->npwd =& new clsControl(ccsLabel, "npwd", "npwd", ccsText, "", CCGetRequestParam("npwd", ccsGet, NULL), $this);
$this->finance_period_code =& new clsControl(ccsLabel, "finance_period_code", "finance_period_code", ccsText, "", CCGetRequestParam("finance_period_code", ccsGet, NULL), $this);
$this->order_no =& new clsControl(ccsLabel, "order_no", "order_no", ccsText, "", CCGetRequestParam("order_no", ccsGet, NULL), $this);
$this->t_vat_setllement_id =& new clsControl(ccsHidden, "t_vat_setllement_id", "t_vat_setllement_id", ccsFloat, "", CCGetRequestParam("t_vat_setllement_id", ccsGet, NULL), $this);
$this->total_trans_amount =& new clsControl(ccsLabel, "total_trans_amount", "total_trans_amount", ccsFloat, array(True, 0, Null, Null, False, array("#", "#", "#"), "", 1, True, ""), CCGetRequestParam("total_trans_amount", ccsGet, NULL), $this);
$this->ImageLink1 =& new clsControl(ccsImageLink, "ImageLink1", "ImageLink1", ccsText, "", CCGetRequestParam("ImageLink1", ccsGet, NULL), $this);
$this->ImageLink1->Page = "t_vat_setllement_dtl_ro.php";
$this->ImageLink2 =& new clsControl(ccsImageLink, "ImageLink2", "ImageLink2", ccsText, "", CCGetRequestParam("ImageLink2", ccsGet, NULL), $this);
$this->ImageLink2->Page = "t_sptpd_legal_doc_ro.php";
$this->p_rqst_type_id =& new clsControl(ccsHidden, "p_rqst_type_id", "p_rqst_type_id", ccsFloat, "", CCGetRequestParam("p_rqst_type_id", ccsGet, NULL), $this);
$this->total_vat_amount =& new clsControl(ccsLabel, "total_vat_amount", "total_vat_amount", ccsFloat, array(True, 0, Null, Null, False, array("#", "#", "#"), "", 1, True, ""), CCGetRequestParam("total_vat_amount", ccsGet, NULL), $this);
$this->cetak_sptpd =& new clsControl(ccsLabel, "cetak_sptpd", "cetak_sptpd", ccsText, "", CCGetRequestParam("cetak_sptpd", ccsGet, NULL), $this);
$this->cetak_sptpd->HTML = true;
$this->p_vat_type_id =& new clsControl(ccsHidden, "p_vat_type_id", "p_vat_type_id", ccsFloat, "", CCGetRequestParam("p_vat_type_id", ccsGet, NULL), $this);
$this->cetak =& new clsControl(ccsLabel, "cetak", "cetak", ccsText, "", CCGetRequestParam("cetak", ccsGet, NULL), $this);
$this->cetak->HTML = true;
$this->wp_name =& new clsControl(ccsLabel, "wp_name", "wp_name", ccsText, "", CCGetRequestParam("wp_name", ccsGet, NULL), $this);
$this->t_customer_order_id =& new clsControl(ccsHidden, "t_customer_order_id", "t_customer_order_id", ccsInteger, "", CCGetRequestParam("t_customer_order_id", ccsGet, NULL), $this);
$this->total_penalty_amount =& new clsControl(ccsLabel, "total_penalty_amount", "total_penalty_amount", ccsFloat, array(True, 0, Null, Null, False, array("#", "#", "#"), "", 1, True, ""), CCGetRequestParam("total_penalty_amount", ccsGet, NULL), $this);
$this->cetak_payment =& new clsButton("cetak_payment", ccsGet, $this);
$this->user =& new clsControl(ccsHidden, "user", "user", ccsText, "", CCGetRequestParam("user", ccsGet, NULL), $this);
$this->cetak_register1 =& new clsButton("cetak_register1", ccsGet, $this);
$this->cetak_register =& new clsButton("cetak_register", ccsGet, $this);
$this->total_total =& new clsControl(ccsLabel, "total_total", "total_total", ccsFloat, array(True, 0, Null, Null, False, array("#", "#", "#"), "", 1, True, ""), CCGetRequestParam("total_total", ccsGet, NULL), $this);
$this->no_kohir =& new clsControl(ccsLabel, "no_kohir", "no_kohir", ccsText, "", CCGetRequestParam("no_kohir", ccsGet, NULL), $this);
$this->Button1 =& new clsButton("Button1", ccsGet, $this);
}
示例5: roleForm_Button_Update_OnClick
function roleForm_Button_Update_OnClick(&$sender)
{
$roleForm_Button_Update_OnClick = true;
$Component =& $sender;
$Container =& CCGetParentContainer($sender);
global $roleForm;
//Compatibility
//End roleForm_Button_Update_OnClick
//Custom Code @91-2A29BDB7
// -------------------------
global $CCSLocales;
global $Redirect;
CCLogoutUser();
$db = new clsDBhrcon();
$SQL = "select * from f_changeuserpwd(" . $db->ToSQL($Container->user_name->Value, ccsText) . "," . $db->ToSQL($Container->CCGetSession("is_new_user")->Value, ccsText) . "," . $db->ToSQL($Container->old_password->Value, ccsText) . "," . $db->ToSQL($Container->new_password->Value, ccsText) . "," . $db->ToSQL($Container->new_password2->Value, ccsText) . "," . "" . "," . "" . ")";
$db->query($SQL);
$Result = $db->next_record();
if (!$Result) {
return;
}
if ($db->f('o_result_int') != 1) {
$Container->Errors->addError($db->f('o_result_msg'));
$roleForm_Button_Update_OnClick = false;
} else {
global $Redirect;
print_r("<script language='JavaScript'>alert('Sukses');</script>");
}
$DBhrcon_->close();
$Redirect = CCGetParam("ret_link", $Redirect);
$roleForm_Button_Update_OnClick = true;
// -------------------------
//End Custom Code
//Close roleForm_Button_Update_OnClick @6-65373743
return $roleForm_Button_Update_OnClick;
}
示例6: clsGridp_role
function clsGridp_role($RelativePath, &$Parent)
{
global $FileName;
global $CCSLocales;
global $DefaultDateFormat;
$this->ComponentName = "p_role";
$this->Visible = True;
$this->Parent =& $Parent;
$this->RelativePath = $RelativePath;
$this->Errors = new clsErrors();
$this->ErrorBlock = "Grid p_role";
$this->Attributes = new clsAttributes($this->ComponentName . ":");
$this->DataSource = new clsp_roleDataSource($this);
$this->ds =& $this->DataSource;
$this->PageSize = CCGetParam($this->ComponentName . "PageSize", "");
if (!is_numeric($this->PageSize) || !strlen($this->PageSize)) {
$this->PageSize = 3;
} else {
$this->PageSize = intval($this->PageSize);
}
if ($this->PageSize > 100) {
$this->PageSize = 100;
}
if ($this->PageSize == 0) {
$this->Errors->addError("<p>Form: Grid " . $this->ComponentName . "<BR>Error: (CCS06) Invalid page size.</p>");
}
$this->PageNumber = intval(CCGetParam($this->ComponentName . "Page", 1));
if ($this->PageNumber <= 0) {
$this->PageNumber = 1;
}
$this->SorterName = CCGetParam("p_roleOrder", "");
$this->SorterDirection = CCGetParam("p_roleDir", "");
$this->p_role_id = new clsControl(ccsLink, "p_role_id", "p_role_id", ccsFloat, "", CCGetRequestParam("p_role_id", ccsGet, NULL), $this);
$this->p_role_id->Page = "p_role_maint.php";
$this->code = new clsControl(ccsLabel, "code", "code", ccsText, "", CCGetRequestParam("code", ccsGet, NULL), $this);
$this->listing_no = new clsControl(ccsLabel, "listing_no", "listing_no", ccsFloat, "", CCGetRequestParam("listing_no", ccsGet, NULL), $this);
$this->valid_from = new clsControl(ccsLabel, "valid_from", "valid_from", ccsDate, $DefaultDateFormat, CCGetRequestParam("valid_from", ccsGet, NULL), $this);
$this->valid_to = new clsControl(ccsLabel, "valid_to", "valid_to", ccsDate, $DefaultDateFormat, CCGetRequestParam("valid_to", ccsGet, NULL), $this);
$this->description = new clsControl(ccsLabel, "description", "description", ccsText, "", CCGetRequestParam("description", ccsGet, NULL), $this);
$this->creation_date = new clsControl(ccsLabel, "creation_date", "creation_date", ccsDate, $DefaultDateFormat, CCGetRequestParam("creation_date", ccsGet, NULL), $this);
$this->created_by = new clsControl(ccsLabel, "created_by", "created_by", ccsText, "", CCGetRequestParam("created_by", ccsGet, NULL), $this);
$this->updated_date = new clsControl(ccsLabel, "updated_date", "updated_date", ccsDate, $DefaultDateFormat, CCGetRequestParam("updated_date", ccsGet, NULL), $this);
$this->updated_by = new clsControl(ccsLabel, "updated_by", "updated_by", ccsText, "", CCGetRequestParam("updated_by", ccsGet, NULL), $this);
$this->p_role_Insert = new clsControl(ccsLink, "p_role_Insert", "p_role_Insert", ccsText, "", CCGetRequestParam("p_role_Insert", ccsGet, NULL), $this);
$this->p_role_Insert->Parameters = CCGetQueryString("QueryString", array("p_role_id", "ccsForm"));
$this->p_role_Insert->Page = "p_role_maint.php";
$this->Sorter_p_role_id = new clsSorter($this->ComponentName, "Sorter_p_role_id", $FileName, $this);
$this->Sorter_p_role_id->Visible = false;
$this->Sorter_code = new clsSorter($this->ComponentName, "Sorter_code", $FileName, $this);
$this->Sorter_listing_no = new clsSorter($this->ComponentName, "Sorter_listing_no", $FileName, $this);
$this->Sorter_valid_from = new clsSorter($this->ComponentName, "Sorter_valid_from", $FileName, $this);
$this->Sorter_valid_to = new clsSorter($this->ComponentName, "Sorter_valid_to", $FileName, $this);
$this->Sorter_description = new clsSorter($this->ComponentName, "Sorter_description", $FileName, $this);
$this->Sorter_creation_date = new clsSorter($this->ComponentName, "Sorter_creation_date", $FileName, $this);
$this->Sorter_created_by = new clsSorter($this->ComponentName, "Sorter_created_by", $FileName, $this);
$this->Sorter_updated_date = new clsSorter($this->ComponentName, "Sorter_updated_date", $FileName, $this);
$this->Sorter_updated_by = new clsSorter($this->ComponentName, "Sorter_updated_by", $FileName, $this);
$this->Navigator = new clsNavigator($this->ComponentName, "Navigator", $FileName, 10, tpSimple, $this);
$this->Navigator->PageSizes = array("1", "5", "10", "25", "50");
}
示例7: clsGriditems1
function clsGriditems1()
{
global $FileName;
global $now;
$this->ComponentName = "items1";
$this->Visible = True;
$this->Errors = new clsErrors();
$this->ds = new clsitems1DataSource();
$this->PageSize = CCGetParam($this->ComponentName . "PageSize", "");
if(!is_numeric($this->PageSize) || !strlen($this->PageSize))
$this->PageSize = $now["frontentrys"];
else
$this->PageSize = intval($this->PageSize);
$this->PageNumber = intval(CCGetParam($this->ComponentName . "Page", 1));
$this->background = new clsControl(ccsLabel, "background", "background", ccsInteger, "", CCGetRequestParam("background", ccsGet));
$this->background->HTML = true;
$this->bold2 = new clsControl(ccsLabel, "bold2", "bold2", ccsText, "", CCGetRequestParam("bold2", ccsGet));
$this->bold2->HTML = true;
$this->image_preview = new clsControl(ccsLabel, "image_preview", "image_preview", ccsInteger, "", CCGetRequestParam("image_preview", ccsGet));
$this->image_preview->HTML = true;
$this->image_one = new clsControl(ccsLabel, "image_one", "image_one", ccsText, "", CCGetRequestParam("image_one", ccsGet));
$this->image_one->HTML = true;
$this->ItemNum = new clsControl(ccsLabel, "ItemNum", "ItemNum", ccsInteger, "", CCGetRequestParam("ItemNum", ccsGet));
$this->bold = new clsControl(ccsLabel, "bold", "bold", ccsInteger, "", CCGetRequestParam("bold", ccsGet));
$this->bold->HTML = true;
$this->title = new clsControl(ccsLabel, "title", "title", ccsText, "", CCGetRequestParam("title", ccsGet));
$this->make_offer = new clsControl(ccsLabel, "make_offer", "make_offer", ccsInteger, "", CCGetRequestParam("make_offer", ccsGet));
$this->make_offer->HTML = true;
$this->city_town = new clsControl(ccsLabel, "city_town", "city_town", ccsText, "", CCGetRequestParam("city_town", ccsGet));
$this->state_province = new clsControl(ccsLabel, "state_province", "state_province", ccsText, "", CCGetRequestParam("state_province", ccsGet));
$this->started = new clsControl(ccsLabel, "started", "started", ccsInteger, "", CCGetRequestParam("started", ccsGet));
$this->asking_price = new clsControl(ccsLabel, "asking_price", "asking_price", ccsFloat, Array(False, 2, ".", "", False, "", "", 1, True, ""), CCGetRequestParam("asking_price", ccsGet));
}
示例8: clsGridusers1
function clsGridusers1($RelativePath, &$Parent)
{
global $FileName;
global $CCSLocales;
global $DefaultDateFormat;
$this->ComponentName = "users1";
$this->Visible = True;
$this->Parent =& $Parent;
$this->RelativePath = $RelativePath;
$this->Errors = new clsErrors();
$this->ErrorBlock = "Grid users1";
$this->Attributes = new clsAttributes($this->ComponentName . ":");
$this->DataSource = new clsusers1DataSource($this);
$this->ds =& $this->DataSource;
$this->PageSize = CCGetParam($this->ComponentName . "PageSize", "");
if (!is_numeric($this->PageSize) || !strlen($this->PageSize)) {
$this->PageSize = 10;
} else {
$this->PageSize = intval($this->PageSize);
}
if ($this->PageSize > 100) {
$this->PageSize = 100;
}
if ($this->PageSize == 0) {
$this->Errors->addError("<p>Form: Grid " . $this->ComponentName . "<BR>Error: (CCS06) Invalid page size.</p>");
}
$this->PageNumber = intval(CCGetParam($this->ComponentName . "Page", 1));
if ($this->PageNumber <= 0) {
$this->PageNumber = 1;
}
$this->first_name = new clsControl(ccsLabel, "first_name", "first_name", ccsText, "", CCGetRequestParam("first_name", ccsGet, NULL), $this);
}
開發者ID:Okwori,項目名稱:iRadiology,代碼行數:32,代碼來源:admin_index_title_user_group_departme1_s_keyword_YahooAutocomplete1.php
示例9: clsGridadministrators
function clsGridadministrators()
{
global $FileName;
$this->ComponentName = "administrators";
$this->Visible = True;
$this->Errors = new clsErrors();
$this->ds = new clsadministratorsDataSource();
$this->PageSize = CCGetParam($this->ComponentName . "PageSize", "");
if (!is_numeric($this->PageSize) || !strlen($this->PageSize)) {
$this->PageSize = 20;
} else {
$this->PageSize = intval($this->PageSize);
}
$this->PageNumber = intval(CCGetParam($this->ComponentName . "Page", 1));
$this->SorterName = CCGetParam("administratorsOrder", "");
$this->SorterDirection = CCGetParam("administratorsDir", "");
$this->Detail = new clsControl(ccsLink, "Detail", "Detail", ccsText, "", CCGetRequestParam("Detail", ccsGet));
$this->username = new clsControl(ccsLabel, "username", "username", ccsText, "", CCGetRequestParam("username", ccsGet));
$this->level = new clsControl(ccsLabel, "level", "level", ccsText, "", CCGetRequestParam("level", ccsGet));
$this->firstname = new clsControl(ccsLabel, "firstname", "firstname", ccsText, "", CCGetRequestParam("firstname", ccsGet));
$this->lastname = new clsControl(ccsLabel, "lastname", "lastname", ccsText, "", CCGetRequestParam("lastname", ccsGet));
$this->phone = new clsControl(ccsLabel, "phone", "phone", ccsText, "", CCGetRequestParam("phone", ccsGet));
$this->Sorter_username = new clsSorter($this->ComponentName, "Sorter_username", $FileName);
$this->Sorter_level = new clsSorter($this->ComponentName, "Sorter_level", $FileName);
$this->Sorter_firstname = new clsSorter($this->ComponentName, "Sorter_firstname", $FileName);
$this->Sorter_lastname = new clsSorter($this->ComponentName, "Sorter_lastname", $FileName);
$this->Sorter_phone = new clsSorter($this->ComponentName, "Sorter_phone", $FileName);
$this->administrators_Insert = new clsControl(ccsLink, "administrators_Insert", "administrators_Insert", ccsText, "", CCGetRequestParam("administrators_Insert", ccsGet));
$this->administrators_Insert->Parameters = CCGetQueryString("QueryString", array("admin_id", "ccsForm"));
$this->administrators_Insert->Page = "AdministratorsEdit.php";
$this->Navigator = new clsNavigator($this->ComponentName, "Navigator", $FileName, 5, tpCentered);
}
示例10: clsGridSELECT_x_receipt_no_x_p_f
function clsGridSELECT_x_receipt_no_x_p_f($RelativePath, &$Parent)
{
global $FileName;
global $CCSLocales;
global $DefaultDateFormat;
$this->ComponentName = "SELECT_x_receipt_no_x_p_f";
$this->Visible = True;
$this->Parent =& $Parent;
$this->RelativePath = $RelativePath;
$this->Errors = new clsErrors();
$this->ErrorBlock = "Grid SELECT_x_receipt_no_x_p_f";
$this->Attributes = new clsAttributes($this->ComponentName . ":");
$this->DataSource = new clsSELECT_x_receipt_no_x_p_fDataSource($this);
$this->ds =& $this->DataSource;
$this->PageSize = CCGetParam($this->ComponentName . "PageSize", "");
if (!is_numeric($this->PageSize) || !strlen($this->PageSize)) {
$this->PageSize = 10;
} else {
$this->PageSize = intval($this->PageSize);
}
if ($this->PageSize > 100) {
$this->PageSize = 100;
}
if ($this->PageSize == 0) {
$this->Errors->addError("<p>Form: Grid " . $this->ComponentName . "<br>Error: (CCS06) Invalid page size.</p>");
}
$this->PageNumber = intval(CCGetParam($this->ComponentName . "Page", 1));
if ($this->PageNumber <= 0) {
$this->PageNumber = 1;
}
$this->p_finance_period_id =& new clsControl(ccsLabel, "p_finance_period_id", "p_finance_period_id", ccsFloat, "", CCGetRequestParam("p_finance_period_id", ccsGet, NULL), $this);
$this->description =& new clsControl(ccsLabel, "description", "description", ccsText, "", CCGetRequestParam("description", ccsGet, NULL), $this);
$this->code =& new clsControl(ccsLabel, "code", "code", ccsText, "", CCGetRequestParam("code", ccsGet, NULL), $this);
$this->activation_date =& new clsControl(ccsLabel, "activation_date", "activation_date", ccsText, "", CCGetRequestParam("activation_date", ccsGet, NULL), $this);
}
示例11: clsGridpromo
function clsGridpromo()
{
global $FileName;
$this->ComponentName = "promo";
$this->Visible = True;
$this->Errors = new clsErrors();
$this->ds = new clspromoDataSource();
$this->PageSize = CCGetParam($this->ComponentName . "PageSize", "");
if (!is_numeric($this->PageSize) || !strlen($this->PageSize)) {
$this->PageSize = 20;
} else {
$this->PageSize = intval($this->PageSize);
}
$this->PageNumber = intval(CCGetParam($this->ComponentName . "Page", 1));
$this->SorterName = CCGetParam("promoOrder", "");
$this->SorterDirection = CCGetParam("promoDir", "");
$this->Detail = new clsControl(ccsLink, "Detail", "Detail", ccsText, "", CCGetRequestParam("Detail", ccsGet));
$this->id = new clsControl(ccsLabel, "id", "id", ccsInteger, "", CCGetRequestParam("id", ccsGet));
$this->code = new clsControl(ccsLabel, "code", "code", ccsText, "", CCGetRequestParam("code", ccsGet));
$this->start = new clsControl(ccsLabel, "start", "start", ccsInteger, "", CCGetRequestParam("start", ccsGet));
$this->end = new clsControl(ccsLabel, "end", "end", ccsInteger, "", CCGetRequestParam("end", ccsGet));
$this->amount = new clsControl(ccsLabel, "amount", "amount", ccsFloat, array(False, 2, ".", "", False, "", "", 1, True, ""), CCGetRequestParam("amount", ccsGet));
$this->Sorter_id = new clsSorter($this->ComponentName, "Sorter_id", $FileName);
$this->Sorter_code = new clsSorter($this->ComponentName, "Sorter_code", $FileName);
$this->Sorter_start = new clsSorter($this->ComponentName, "Sorter_start", $FileName);
$this->Sorter_end = new clsSorter($this->ComponentName, "Sorter_end", $FileName);
$this->Sorter_amount = new clsSorter($this->ComponentName, "Sorter_amount", $FileName);
$this->promo_Insert = new clsControl(ccsLink, "promo_Insert", "promo_Insert", ccsText, "", CCGetRequestParam("promo_Insert", ccsGet));
$this->promo_Insert->Parameters = CCGetQueryString("QueryString", array("id", "ccsForm"));
$this->promo_Insert->Page = "AddPromo.php";
$this->Navigator = new clsNavigator($this->ComponentName, "Navigator", $FileName, 5, tpCentered);
}
示例12: clsGridselect_CASE_WHEN_cust_acc
function clsGridselect_CASE_WHEN_cust_acc($RelativePath, &$Parent)
{
global $FileName;
global $CCSLocales;
global $DefaultDateFormat;
$this->ComponentName = "select_CASE_WHEN_cust_acc";
$this->Visible = True;
$this->Parent =& $Parent;
$this->RelativePath = $RelativePath;
$this->Errors = new clsErrors();
$this->ErrorBlock = "Grid select_CASE_WHEN_cust_acc";
$this->Attributes = new clsAttributes($this->ComponentName . ":");
$this->DataSource = new clsselect_CASE_WHEN_cust_accDataSource($this);
$this->ds =& $this->DataSource;
$this->PageSize = CCGetParam($this->ComponentName . "PageSize", "");
if (!is_numeric($this->PageSize) || !strlen($this->PageSize)) {
$this->PageSize = 10;
} else {
$this->PageSize = intval($this->PageSize);
}
if ($this->PageSize > 100) {
$this->PageSize = 100;
}
if ($this->PageSize == 0) {
$this->Errors->addError("<p>Form: Grid " . $this->ComponentName . "<br>Error: (CCS06) Invalid page size.</p>");
}
$this->PageNumber = intval(CCGetParam($this->ComponentName . "Page", 1));
if ($this->PageNumber <= 0) {
$this->PageNumber = 1;
}
$this->status =& new clsControl(ccsLabel, "status", "status", ccsMemo, "", CCGetRequestParam("status", ccsGet, NULL), $this);
$this->count =& new clsControl(ccsLabel, "count", "count", ccsInteger, "", CCGetRequestParam("count", ccsGet, NULL), $this);
}
示例13: clsGridlookup_countries
function clsGridlookup_countries()
{
global $FileName;
$this->ComponentName = "lookup_countries";
$this->Visible = True;
$this->Errors = new clsErrors();
$this->ds = new clslookup_countriesDataSource();
$this->PageSize = CCGetParam($this->ComponentName . "PageSize", "");
if (!is_numeric($this->PageSize) || !strlen($this->PageSize)) {
$this->PageSize = 20;
} else {
$this->PageSize = intval($this->PageSize);
}
$this->PageNumber = intval(CCGetParam($this->ComponentName . "Page", 1));
$this->SorterName = CCGetParam("lookup_countriesOrder", "");
$this->SorterDirection = CCGetParam("lookup_countriesDir", "");
$this->Detail = new clsControl(ccsLink, "Detail", "Detail", ccsText, "", CCGetRequestParam("Detail", ccsGet));
$this->country_id = new clsControl(ccsLabel, "country_id", "country_id", ccsInteger, "", CCGetRequestParam("country_id", ccsGet));
$this->country_desc = new clsControl(ccsLabel, "country_desc", "country_desc", ccsText, "", CCGetRequestParam("country_desc", ccsGet));
$this->Sorter_country_id = new clsSorter($this->ComponentName, "Sorter_country_id", $FileName);
$this->Sorter_country_desc = new clsSorter($this->ComponentName, "Sorter_country_desc", $FileName);
$this->lookup_countries_Insert = new clsControl(ccsLink, "lookup_countries_Insert", "lookup_countries_Insert", ccsText, "", CCGetRequestParam("lookup_countries_Insert", ccsGet));
$this->lookup_countries_Insert->Parameters = CCGetQueryString("QueryString", array("country_id", "ccsForm"));
$this->lookup_countries_Insert->Page = "CountriesEdit.php";
$this->Navigator = new clsNavigator($this->ComponentName, "Navigator", $FileName, 5, tpCentered);
}
示例14: clsGridselect_from_f_status_belu
function clsGridselect_from_f_status_belu($RelativePath, &$Parent)
{
global $FileName;
global $CCSLocales;
global $DefaultDateFormat;
$this->ComponentName = "select_from_f_status_belu";
$this->Visible = True;
$this->Parent =& $Parent;
$this->RelativePath = $RelativePath;
$this->Errors = new clsErrors();
$this->ErrorBlock = "Grid select_from_f_status_belu";
$this->Attributes = new clsAttributes($this->ComponentName . ":");
$this->DataSource = new clsselect_from_f_status_beluDataSource($this);
$this->ds =& $this->DataSource;
$this->PageSize = CCGetParam($this->ComponentName . "PageSize", "");
if (!is_numeric($this->PageSize) || !strlen($this->PageSize)) {
$this->PageSize = 10;
} else {
$this->PageSize = intval($this->PageSize);
}
if ($this->PageSize > 100) {
$this->PageSize = 100;
}
if ($this->PageSize == 0) {
$this->Errors->addError("<p>Form: Grid " . $this->ComponentName . "<br>Error: (CCS06) Invalid page size.</p>");
}
$this->PageNumber = intval(CCGetParam($this->ComponentName . "Page", 1));
if ($this->PageNumber <= 0) {
$this->PageNumber = 1;
}
$this->x_dummy =& new clsControl(ccsLabel, "x_dummy", "x_dummy", ccsFloat, "", CCGetRequestParam("x_dummy", ccsGet, NULL), $this);
$this->p_vat_type_id =& new clsControl(ccsLabel, "p_vat_type_id", "p_vat_type_id", ccsFloat, "", CCGetRequestParam("p_vat_type_id", ccsGet, NULL), $this);
$this->vat_code =& new clsControl(ccsLabel, "vat_code", "vat_code", ccsText, "", CCGetRequestParam("vat_code", ccsGet, NULL), $this);
$this->jml_wp =& new clsControl(ccsLabel, "jml_wp", "jml_wp", ccsFloat, "", CCGetRequestParam("jml_wp", ccsGet, NULL), $this);
}
示例15: Login_Button_DoLogin1_OnClick
function Login_Button_DoLogin1_OnClick(&$sender)
{
$Login_Button_DoLogin1_OnClick = true;
$Component =& $sender;
$Container =& CCGetParentContainer($sender);
global $Login;
//Compatibility
//End Login_Button_DoLogin1_OnClick
//Login @9-DE10C29C
global $CCSLocales;
global $Redirect;
if (!CCLoginUser($Container->login->Value, md5($Container->password->Value))) {
$Container->Errors->addError($CCSLocales->GetText("CCS_LoginError"));
$Container->Errors->addError(md5($Container->password->Value));
$Container->password->SetValue("");
$Login_Button_DoLogin_OnClick = 0;
} else {
global $Redirect;
$Redirect = CCGetParam("ret_link", $Redirect);
$Login_Button_DoLogin_OnClick = 1;
}
//End Login
//Close Login_Button_DoLogin1_OnClick @8-58EB7BC1
return $Login_Button_DoLogin1_OnClick;
}