Changeset 1085
- Timestamp:
- 09/29/08 08:48:37 (2 months ago)
- Files:
-
- trunk/admin/Public/form_data/FG_var_service.inc (modified) (3 diffs)
- trunk/admin/Public/form_data/FG_var_speeddial.inc (modified) (1 diff)
- trunk/admin/Public/form_data/FG_var_statuslog.inc (modified) (2 diffs)
- trunk/admin/Public/form_data/FG_var_subscriber.inc (modified) (2 diffs)
- trunk/admin/Public/form_data/FG_var_subscription.inc (modified) (3 diffs)
- trunk/admin/Public/form_data/FG_var_support_component.inc (modified) (3 diffs)
- trunk/admin/Public/form_data/FG_var_support.inc (modified) (1 diff)
- trunk/admin/Public/form_data/FG_var_tariffgroup.inc (modified) (1 diff)
- trunk/admin/Public/form_data/FG_var_tariffplan.inc (modified) (1 diff)
- trunk/admin/Public/form_data/FG_var_ticket.inc (modified) (1 diff)
- trunk/admin/Public/form_data/FG_var_transactions.inc (modified) (4 diffs)
- trunk/admin/Public/form_data/FG_var_trunk.inc (modified) (1 diff)
- trunk/admin/Public/form_data/FG_var_user.inc (modified) (1 diff)
- trunk/admin/Public/form_data/FG_var_view_invoice.inc (modified) (5 diffs)
- trunk/admin/Public/form_data/FG_var_voucher.inc (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/admin/Public/form_data/FG_var_service.inc
r1076 r1085 1 1 <?php 2 2 3 getpost_ifset(array('id', 'name', 'amount', 'period', 'rule', 'daynumber', 'stopmode', 'maxnumbercycle', 'status', 'emailreport')); 3 4 … … 6 7 7 8 $HD_Form -> FG_DEBUG = 0; 8 // FAQ9 9 $HD_Form -> FG_TABLE_DEFAULT_ORDER = "id"; 10 10 $HD_Form -> FG_TABLE_DEFAULT_SENS = "DESC"; … … 189 189 $HD_Form -> FG_GO_LINK_AFTER_ACTION_EDIT = $_SERVER['PHP_SELF']."?atmenu=document&stitle=Document&wh=AC&id="; 190 190 $HD_Form -> FG_GO_LINK_AFTER_ACTION_DELETE = $_SERVER['PHP_SELF']."?atmenu=document&stitle=Document&wh=AC&id="; 191 ?>trunk/admin/Public/form_data/FG_var_speeddial.inc
r1069 r1085 125 125 126 126 127 trunk/admin/Public/form_data/FG_var_statuslog.inc
r405 r1085 5 5 6 6 $HD_Form = new FormHandler("cc_status_log sl", "Status Log"); 7 8 7 9 8 $HD_Form -> FG_DEBUG = 0; … … 81 80 $HD_Form -> CV_TEXT_TITLE_ABOVE_TABLE = ''; 82 81 $HD_Form -> CV_DISPLAY_FILTER_ABOVE_TABLE = false; 82 83 trunk/admin/Public/form_data/FG_var_subscriber.inc
r1076 r1085 1 1 <?php 2 2 3 getpost_ifset(array('id', 'id_cc_card', 'id_subscription_fee', 'datestart', 'datestop', 'product_name')); 3 4 4 5 $HD_Form = new FormHandler("cc_card_subscription","Subscriber"); 5 6 6 $HD_Form -> FG_DEBUG = 0; 7 7 … … 120 120 $HD_Form -> FG_GO_LINK_AFTER_ACTION_DELETE = $_SERVER['PHP_SELF']."?atmenu=document&stitle=Document&wh=AC&id="; 121 121 122 ?> 122 trunk/admin/Public/form_data/FG_var_subscription.inc
r1076 r1085 1 1 <?php 2 2 3 getpost_ifset(array('id', 'label', 'fee', 'status', 'emailreport')); 3 4 … … 5 6 6 7 $HD_Form -> FG_DEBUG = 0; 7 // FAQ8 8 $HD_Form -> FG_TABLE_DEFAULT_ORDER = "id"; 9 9 $HD_Form -> FG_TABLE_DEFAULT_SENS = "DESC"; … … 137 137 $HD_Form -> FG_GO_LINK_AFTER_ACTION_EDIT = $_SERVER['PHP_SELF']."?atmenu=document&stitle=Document&wh=AC&id="; 138 138 $HD_Form -> FG_GO_LINK_AFTER_ACTION_DELETE = $_SERVER['PHP_SELF']."?atmenu=document&stitle=Document&wh=AC&id="; 139 ?>trunk/admin/Public/form_data/FG_var_support_component.inc
r1076 r1085 5 5 6 6 7 $HD_Form = new FormHandler("cc_support_component","Support Component" );7 $HD_Form = new FormHandler("cc_support_component","Support Component"); 8 8 9 9 … … 67 67 68 68 $HD_Form -> AddEditElement (gettext("Support Box"), 69 "id_support",70 "",71 "SELECT",72 "", "", "",73 "sql",74 "cc_support",75 "name, id",76 "", "", "%1", "", "");69 "id_support", 70 "", 71 "SELECT", 72 "", "", "", 73 "sql", 74 "cc_support", 75 "name, id", 76 "", "", "%1", "", ""); 77 77 78 78 … … 96 96 $HD_Form -> FG_GO_LINK_AFTER_ACTION_EDIT = $_SERVER['PHP_SELF']."?atmenu=document&stitle=Document&wh=AC&id="; 97 97 $HD_Form -> FG_GO_LINK_AFTER_ACTION_DELETE = $_SERVER['PHP_SELF']."?atmenu=document&stitle=Document&wh=AC&id="; 98 ?> 98 99 trunk/admin/Public/form_data/FG_var_support.inc
r1076 r1085 76 76 $HD_Form -> FG_GO_LINK_AFTER_ACTION_EDIT = $_SERVER['PHP_SELF']."?atmenu=document&stitle=Document&wh=AC&id="; 77 77 $HD_Form -> FG_GO_LINK_AFTER_ACTION_DELETE = $_SERVER['PHP_SELF']."?atmenu=document&stitle=Document&wh=AC&id="; 78 ?> 78 79 80 trunk/admin/Public/form_data/FG_var_tariffgroup.inc
r1076 r1085 166 166 $HD_Form -> FG_GO_LINK_AFTER_ACTION_EDIT = $_SERVER['PHP_SELF']."?atmenu=document&stitle=Document&wh=AC&id="; 167 167 $HD_Form -> FG_GO_LINK_AFTER_ACTION_DELETE = $_SERVER['PHP_SELF']."?atmenu=document&stitle=Document&wh=AC&id="; 168 169 170 171 trunk/admin/Public/form_data/FG_var_tariffplan.inc
r1076 r1085 138 138 139 139 140 141 142 140 $HD_Form -> FG_INTRO_TEXT_EDITION= gettext("Modify the properties of the rate card."); 143 141 $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."); 144 142 $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."); 145 143 146 147 148 149 150 144 $HD_Form -> FG_INTRO_TEXT_ADITION = ''; 151 145 $HD_Form -> FG_TEXT_ADITION_CONFIRMATION = gettext("Your new")." ". $HD_Form->FG_INSTANCE_NAME." ".gettext("has been inserted.")." <br>"; 152 153 146 154 147 $HD_Form -> FG_BUTTON_EDITION_SRC = $HD_Form -> FG_BUTTON_ADITION_SRC = Images_Path . "/cormfirmboton.gif"; 155 148 $HD_Form -> FG_BUTTON_EDITION_BOTTOM_TEXT = $HD_Form -> FG_BUTTON_ADITION_BOTTOM_TEXT = gettext("Setup those values to create the new")." ".$HD_Form->FG_INSTANCE_NAME; 156 149 157 158 159 150 //$HD_Form -> FG_GO_LINK_AFTER_ACTION_ADD = $_SERVER['PHP_SELF']."?atmenu=document&stitle=Document&wh=AC&id="; 160 151 $HD_Form -> FG_GO_LINK_AFTER_ACTION_EDIT = $_SERVER['PHP_SELF']."?atmenu=document&stitle=Document&wh=AC&id="; 161 152 $HD_Form -> FG_GO_LINK_AFTER_ACTION_DELETE = $_SERVER['PHP_SELF']."?atmenu=document&stitle=Document&wh=AC&id="; 162 ?> 153 154 trunk/admin/Public/form_data/FG_var_ticket.inc
r1076 r1085 156 156 $HD_Form -> FG_GO_LINK_AFTER_ACTION_EDIT = $_SERVER['PHP_SELF']."?atmenu=document&stitle=Document&wh=AC&id="; 157 157 $HD_Form -> FG_GO_LINK_AFTER_ACTION_DELETE = $_SERVER['PHP_SELF']."?atmenu=document&stitle=Document&wh=AC&id="; 158 ?> 158 159 trunk/admin/Public/form_data/FG_var_transactions.inc
r237 r1085 1 1 <?php 2 2 3 getpost_ifset(array('id', 'customers_id', 'customers_name', 'customers_email_address', 'item_name', 'item_id', 'item_quantity', 'payment_method','cc_type', 'cc_owner','cc_number', 'cc_expires', 'orders_status', 'last_modified', 'date_purchased','orders_date_finished', 'orders_amount', 'currency', 'currency_value')); 3 4 … … 13 14 $HD_Form -> AddViewElement(gettext("CARDID"), "customers_id", "7%", "center", "sort"); 14 15 $HD_Form -> AddViewElement(gettext("NAME"), "customers_name", "10%", "center", "sort"); 15 //$HD_Form -> AddViewElement(gettext("EMAIL"), "customers_email_address", "10%", "center", "sort");16 16 $HD_Form -> AddViewElement(gettext("ITEM NAME"), "item_name", "10%", "center", "sort"); 17 17 $HD_Form -> AddViewElement(gettext("ITEM ID"), "item_id", "10%", "center", "sort", "", "30", "", "", "", "", "linktocustomer"); 18 18 $HD_Form -> AddViewElement(gettext("METHOD"), "payment_method", "9%", "center", "sort"); 19 19 $HD_Form -> AddViewElement(gettext("CC NUMBER"), "cc_number", "10%", "center", "sort"); 20 //$HD_Form -> AddViewElement(gettext("CC EXPIRES"), "cc_expires", "7%", "center", "sort");21 20 $HD_Form -> AddViewElement(gettext("STATUS"), "orders_status", "7%", "center", "sort","15","lie","cc_payments_status","status_name","status_id='%id'","%1"); 22 21 $HD_Form -> AddViewElement(gettext("AMOUNT"), "orders_amount", "8%", "center", "SORT", "30"); 23 22 $HD_Form -> AddViewElement("<acronym title=\"".gettext("CURRENCY")."\">".gettext("CUR")."</acronym>", "currency", "5%", "center", "sort", ""); 24 23 $HD_Form -> AddViewElement(gettext("VALUE"), "currency_value", "5%", "center", "SORT", "30"); 25 // added a parameter to append FG_TABLE_ID ( by default ) or disable 0. 24 26 25 $HD_Form -> FieldViewElement ('id, date_purchased, customers_id, customers_name, item_name, item_id, payment_method, cc_number, orders_status, orders_amount, currency, currency_value'); 27 26 … … 235 234 $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."); 236 235 237 238 236 $HD_Form -> FG_INTRO_TEXT_ADITION = ''; 239 237 $HD_Form -> FG_TEXT_ADITION_CONFIRMATION = gettext("Your new")." ".$HD_Form->FG_INSTANCE_NAME." ".gettext("has been inserted.")."<br>"; … … 242 240 $HD_Form -> FG_BUTTON_EDITION_SRC = $HD_Form -> FG_BUTTON_ADITION_SRC = "../Images/cormfirmboton.gif"; 243 241 $HD_Form -> FG_BUTTON_EDITION_BOTTOM_TEXT = $HD_Form -> FG_BUTTON_ADITION_BOTTOM_TEXT = gettext("Click 'Confirm Data' to continue"); 244 245 246 242 247 243 $HD_Form -> FG_GO_LINK_AFTER_ACTION_ADD = $_SERVER['PHP_SELF']."?atmenu=document&stitle=Document&wh=AC&id="; 248 244 $HD_Form -> FG_GO_LINK_AFTER_ACTION_EDIT = $_SERVER['PHP_SELF']."?atmenu=document&stitle=Document&wh=AC&id="; 249 245 $HD_Form -> FG_GO_LINK_AFTER_ACTION_DELETE = $_SERVER['PHP_SELF']."?atmenu=document&stitle=Document&wh=AC&id="; 250 ?> 246 247 248 249 trunk/admin/Public/form_data/FG_var_trunk.inc
r1076 r1085 219 219 220 220 221 222 223 221 $HD_Form -> FG_INTRO_TEXT_EDITION= gettext("Modify the properties of the trunk below."); 224 222 $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."); 225 223 $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."); 226 224 227 228 229 230 231 225 $HD_Form -> FG_INTRO_TEXT_ADITION = ''; 232 226 $HD_Form -> FG_TEXT_ADITION_CONFIRMATION = gettext("Your new")." ".$HD_Form->FG_INSTANCE_NAME." ".gettext("has been inserted.")."<br>"; 233 227 234 235 228 $HD_Form -> FG_BUTTON_EDITION_SRC = $HD_Form -> FG_BUTTON_ADITION_SRC = Images_Path . "/cormfirmboton.gif"; 236 229 $HD_Form -> FG_BUTTON_EDITION_BOTTOM_TEXT = $HD_Form -> FG_BUTTON_ADITION_BOTTOM_TEXT = 'Fill correctly the fields to add a new '.$HD_Form->FG_INSTANCE_NAME; 237 238 239 230 240 231 //$HD_Form -> FG_GO_LINK_AFTER_ACTION_ADD = $_SERVER['PHP_SELF']."?atmenu=document&stitle=Document&wh=AC&id="; 241 232 $HD_Form -> FG_GO_LINK_AFTER_ACTION_EDIT = $_SERVER['PHP_SELF']."?atmenu=document&stitle=Document&wh=AC&id="; 242 233 $HD_Form -> FG_GO_LINK_AFTER_ACTION_DELETE = $_SERVER['PHP_SELF']."?atmenu=document&stitle=Document&wh=AC&id="; 234 235 trunk/admin/Public/form_data/FG_var_user.inc
r1076 r1085 283 283 $HD_Form -> FG_GO_LINK_AFTER_ACTION_EDIT = $_SERVER['PHP_SELF']."?atmenu=user&groupID=$groupID&stitle=Administrator+management&id="; 284 284 $HD_Form -> FG_GO_LINK_AFTER_ACTION_DELETE = $_SERVER['PHP_SELF']."?atmenu=user&groupID=$groupID&stitle=Administrator+management&id="; 285 ?> 285 286 trunk/admin/Public/form_data/FG_var_view_invoice.inc
r237 r1085 1 1 <?php 2 2 3 $plang='en';4 3 getpost_ifset(array('cardid','entercustomer','section','Period','frommonth','tomonth','fromstatsmonth','tostatsmonth')); 5 if ($totaltext == "") 6 { 7 $totaltext = 0; 8 } 4 5 if ($totaltext == "") $totaltext = 0; 6 7 9 8 $HD_Form = new FormHandler("cc_card card, cc_invoices inv LEFT JOIN (SELECT * FROM cc_invoice_history GROUP BY invoiceid HAVING Max(invoicesent_date)) as his ON inv.ID = his.invoiceid ","Invoice"); 10 9 … … 12 11 13 12 $HD_Form -> FG_TABLE_CLAUSE = " card.id = inv.cardid "; 14 if (isset($entercustomer) && ($entercustomer>0)) 15 { 13 if (isset($entercustomer) && ($entercustomer>0)) { 16 14 $HD_Form -> FG_TABLE_CLAUSE .= " AND card.username = '$entercustomer' "; 17 15 } … … 24 22 } 25 23 $lastdayofmonth = date("t", strtotime($tostatsmonth.'-01')); 26 if (strlen($HD_Form -> FG_TABLE_CLAUSE) > 0 && $frommonth) 27 { 24 if (strlen($HD_Form -> FG_TABLE_CLAUSE) > 0 && $frommonth) { 28 25 $date_clause .=' AND '; 29 26 } 30 if ($frommonth && isset($fromstatsmonth)) 31 { 27 if ($frommonth && isset($fromstatsmonth)) { 32 28 $date_clause.=" $UNIX_TIMESTAMP(cover_startdate) >= $UNIX_TIMESTAMP('$fromstatsmonth-01')"; 33 29 } 34 if( ($frommonth && $tomonth) || (strlen($HD_Form -> FG_TABLE_CLAUSE) > 0 && $tomonth) ) 35 { 30 if( ($frommonth && $tomonth) || (strlen($HD_Form -> FG_TABLE_CLAUSE) > 0 && $tomonth) ) { 36 31 $date_clause .=' AND '; 37 32 } 38 33 39 if ($tomonth && isset($tostatsmonth)) 40 { 34 if ($tomonth && isset($tostatsmonth)) { 41 35 $date_clause.=" $UNIX_TIMESTAMP(cover_startdate) <= $UNIX_TIMESTAMP('".$tostatsmonth."-$lastdayofmonth 23:59:59')"; 42 36 } 37 43 38 44 39 $HD_Form -> FG_TABLE_CLAUSE .= $date_clause; 45 40 46 41 47 //48 42 $HD_Form -> FG_TABLE_ID = "inv.id"; 49 43 $HD_Form -> FG_TABLE_DEFAULT_ORDER = "inv.invoicecreated_date"; … … 84 78 $HD_Form -> FG_DELETION = false; 85 79 86 $HD_Form -> FG_OTHER_BUTTON1 = true; 87 $HD_Form -> FG_OTHER_BUTTON2 = true; 80 $HD_Form -> FG_OTHER_BUTTON1 = true; 81 $HD_Form -> FG_OTHER_BUTTON2 = true; 82 83 $HD_Form -> FG_OTHER_BUTTON1_LINK="A2B_entity_invoice_detail.php?id=|param|&invoice_type=2"; 84 $HD_Form -> FG_OTHER_BUTTON2_LINK="A2B_entity_invoice_detail_pdf.php?id=|param|&cardid=$cardid&action=sendinvoice&exporttype=pdf&invoice_type=2"; 85 86 $HD_Form -> FG_OTHER_BUTTON1_ALT = 'Details'; 87 $HD_Form -> FG_OTHER_BUTTON2_ALT = 'Send'; 88 88 89 $HD_Form -> FG_OTHER_BUTTON1_LINK="A2B_entity_invoice_detail.php?id=|param|&invoice_type=2"; 90 $HD_Form -> FG_OTHER_BUTTON2_LINK="A2B_entity_invoice_detail_pdf.php?id=|param|&cardid=$cardid&action=sendinvoice&exporttype=pdf&invoice_type=2"; 91 92 $HD_Form -> FG_OTHER_BUTTON1_ALT = 'Details'; 93 $HD_Form -> FG_OTHER_BUTTON2_ALT = 'Send'; 94 95 $HD_Form -> FG_OTHER_BUTTON1_IMG = Images_Path.'/details.gif'; 96 $HD_Form -> FG_OTHER_BUTTON2_IMG = Images_Path.'/email03.gif'; 89 $HD_Form -> FG_OTHER_BUTTON1_IMG = Images_Path.'/details.gif'; 90 $HD_Form -> FG_OTHER_BUTTON2_IMG = Images_Path.'/email03.gif'; 97 91 98 //$HD_Form -> FG_OTHER_BUTTON2_IMG = ''; 92 99 93 100 94 $HD_Form -> FG_INTRO_TEXT_EDITION= gettext("You can modify, through the following form, the different properties of your ".$HD_Form->FG_INSTANCE_NAME); … … 122 116 $HD_Form -> FG_GO_LINK_AFTER_ACTION_EDIT = $_SERVER['PHP_SELF']."?atmenu=document&stitle=Document&wh=AC&id="; 123 117 $HD_Form -> FG_GO_LINK_AFTER_ACTION_DELETE = $_SERVER['PHP_SELF']."?atmenu=document&stitle=Document&wh=AC&id="; 124 ?> 118 119 120 trunk/admin/Public/form_data/FG_var_voucher.inc
r1076 r1085 1 1 <?php 2 2 3 4 3 getpost_ifset(array('id', 'creationdate', 'usedate', 'expirationdate', 'voucher', 'tag', 'credit', 'activated', 'used', 'currency')); 5 6 7 $plang='en';8 4 9 5 $HD_Form = new FormHandler("cc_voucher","Voucher");
