<br> <?php if ($form[allpayMID]) { $clsRE_client = $form[allpayMID]; } else { $clsRE_client = $form[client]; } $clsRE = "SELECT * FROM o_re_amt WHERE client='{$clsRE_client}' limit 1 "; $qclsRE = mysql_query($clsRE, $plink); $reA = @mysql_fetch_array($qclsRE); echo '<b>看帳可退刷額度設定</b> (有設定的, 看帳才可以有退刷功能)<br>'; echo '<form action="?DO=rrAMT" method="post">'; echo '<input type="hidden" name="isclient" value="' . $clsRE_client . '">' . "\r\n"; echo '起算日期: <input type="text" name="dt" value="' . $reA[re_dt] . '" size=8>(YYYYMMDD)' . "\r\n"; echo ' , 可退額度: <input type="text" name="reamt" value="' . $reA[re_amt] . '" size=8>' . "\r\n"; echo ' , 目前的狀態' . formRadio('restop', '1', $reA['re_stop']) . '不可退刷 , ' . formRadio('restop', '0', $reA['re_stop']) . '可以'; echo '<br><input type="submit" id="submit" name="submit" value="更新">' . "\r\n"; echo '<input type="reset" value="清除">' . "\r\n"; echo '</form>' . "\r\n"; ?> <hr> <br> <br> <br> <br> 大特店的商家,系統開通信是由allpay直接發出,並非由我們發動! <br> <br> <form name="upemail" action="g_userPost.php" method="post" target=_blank> <input type="hidden" name="oldclient" value="<?php echo $client;
<?php echo formRadio("KEY", 4, 1); ?> 交易金額 <?php echo formRadio("KEY", 5, 1); ?> 授權碼 <?php echo formRadio("KEY", 9, 1); ?> 特店訂單編號 <?php echo formRadio("KEY", 10, 1); ?> 訂單資訊 <?php echo formRadio("KEY", 6, 1); ?> 備註字串 <?php echo formRadio("KEY", 8, 1); ?> 國旅 <input type="submit" value="查詢" style="font-size:10pt"> <input type="submit" name="submit2" value="匯出csv檔" style="font-size:10pt"></td></tr> </form> </table> </center> </body> </html>
<tr> <td bgcolor=#cccccc align=right>連續盜刷保護</td> <td bgcolor=#FCDC8F> ' . formRadio('ipstop', '0', $form['ipstop']) . '開 ' . formRadio('ipstop', '1', $form['ipstop']) . '關 ( 對單一使用者有作交易次數的限制, 以免被盜刷集團作大量試卡 ) </td> </tr> <tr> <td bgcolor=#cccccc align=right>鎖定幕前交易網站主機IP</td> <td>' . formRadio('ipcheck', '0', $form['ipcheck']) . '不使用 ' . formRadio('ipcheck', '1', $form['ipcheck']) . '要使用 , IP: ' . formText('webip', 20, 40, $form['webip']) . ' <font color=#ff0000>(使用此一機制,交易全程都不會跳出中斷警告)</font></td> </tr> <tr> <td bgcolor=#cccccc align=right>鎖定幕後驗證觸發主機IP</td> <td>' . formRadio('ipcheck_bk', '0', $form['ipcheck_bk']) . '不使用 ' . formRadio('ipcheck_bk', '1', $form['ipcheck_bk']) . '要使用 , IP: ' . formText('webip_bk', 60, 60, $form['webip_bk']) . '<br> <font color=#ff0000>(先取得每筆交易的驗證檢核碼, 然後才一起送授權, 幕後授權一定要勾選)(多組IP請用逗點分隔,最多四組ip)</font></td> </tr> <tr> <td bgcolor=#cccccc align=right>鎖定登入管理後台IP</td> <td>' . formText('rootIP', 20, 40, $form['rootIP']) . ' <font color=#ff0000>(輸入即會馬上生效, 非此IP之電腦, 將無法登入後台, 不鎖定IP, 請清空)</font></td> </tr>' . "\r\n"; if ($form['sps'] == 1) { //非大特店 是聯信分期, 才秀出來 if (!$_SESSION['RootClientAllpayMID'] && ($form['bank'] == 4 || $form['bank'] == 10)) { echo '<tr> <td bgcolor=#cccccc align=right>聯信分期<br>銀行選擇</td> <td><font color=#ff0000>【請依您實際簽約之銀行增減家數,勾選可交易之銀行】</font><br>' . "\r\n"; $bb = 0; $vv = 0; while (list($l, $r) = each($CardTitel)) {
</head> <style type="text/css"> body { font-family:"微軟正黑體", Arial, Helvetica, sans-serif;} </style> <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" bgcolor=#cccccc> <center>國旅通報明細查詢 <table width=100% border="0" cellpadding="0" cellspacing="0" style="font-size:10pt"> <form name="f" action="g_GuoluBottom.php?s=1" method="post" target="q_bottom"> <tr height=39> <td align=center> <?php echo formRadio("KEY", 1, 1); ?> 交易日期 <?php echo formRadio("KEY", 2, 1); ?> 通報日期 <select name="sdty" style="font-size:10pt"><?php for ($i = 2005; $i <= $hohsnY; $i++) { echo SelEctOP($hohsnY, $i, $i); } ?> </select> <select name="sdtm" style="font-size:10pt"><?php for ($i = 1; $i <= 12; $i++) { $a = sprintf("%02d", $i); echo SelEctOP($hohsnM, $a, $a); } ?> </select>
public function build($categories, $ID = NULL, $type = "checkbox", $name = "categories", $class = NULL, $parent = 0, $URL = NULL, $hide = FALSE) { if (is_null($ID)) { if ($name === "parent") { $this->HTML = NULL; } if (!is_null($class)) { $this->HTML .= openUl(NULL, "categories-list"); } else { $this->HTML .= openUl(); } $i = 0; if (is_array($categories)) { foreach ($categories as $category) { if (is_array($category)) { if (isset($category["Situation"]) and $category["Situation"] === "Active" and (int) $category["ID_Parent"] === 0) { $title = $category["Title"]; if ($type === "radio") { if ($name === "parent" and $i === 0) { $input = formInput(array("name" => $name, "type" => "radio", "value" => 0)); $link = a(span("bold", __("Principal")), FALSE, FALSE, array("title" => __("Principal"))); $this->HTML .= li($input . $link); $i++; } $attrs = array("text" => getLanguage($category["Language"], TRUE), "name" => $name, "value" => $category["ID_Category"], "position" => "right"); $input = formRadio($attrs); $link = a(span("bold", $title), FALSE, FALSE, array("title" => $title)); $this->HTML .= li($input . $link, TRUE); if ($this->parents($categories, $category["ID_Category"])) { $this->build($categories, $category["ID_Category"], $type, $name); } $this->HTML .= li(FALSE); } elseif ($type === "checkbox") { if (isset($category["checked"]) and $category["checked"]) { $check = TRUE; } elseif ((int) $category["ID_Category"] === $parent) { $check = TRUE; } else { $check = FALSE; } $attrs = array("id" => $name, "text" => getLanguage($category["Language"], TRUE), "name" => $name . "[]", "value" => $category["ID_Category"], "position" => "right", "checked" => $check); $input = formCheckbox($attrs); $link = a(span("bold", $title), FALSE, FALSE, array("title" => $title)); $this->HTML .= li($input . $link, TRUE); if ($this->parents($categories, $category["ID_Category"])) { $this->build($categories, $category["ID_Category"], $type, $name); } $this->HTML .= li(FALSE); } else { $link = a($title, $URL . $category["Slug"], FALSE, array("title" => $title)); $this->HTML .= li($link, TRUE); if ($this->parents($categories, $category["ID_Category"])) { $this->build($categories, $category["ID_Category"], $type, $name); } $this->HTML .= li(FALSE); } } } } } $this->HTML .= closeUl(); } else { $this->HTML .= openUl(); foreach ($categories as $category) { if ($category["Situation"] === "Active" and $category["ID_Parent"] === $ID) { $title = $category["Title"]; if ($type === "radio") { if (!$hide) { if (isset($category["checked"]) and $category["checked"]) { $check = TRUE; } elseif ((int) $category["ID_Category"] === $parent) { $check = TRUE; } else { $check = FALSE; } $attrs = array("id" => $name, "text" => getLanguage($category["Language"], TRUE), "name" => $name, "value" => $category["ID_Category"], "position" => "right", "checked" => $check); $input = formRadio($attrs); $link = a($title, FALSE, FALSE, array("title" => $title)); $this->HTML .= li($input . $link, TRUE); if ($this->parents($categories, $category["ID_Category"]) === TRUE) { $this->build($categories, $category["ID_Category"], $type, $name); } $this->HTML .= li(FALSE); } else { $link = a($title, FALSE, FALSE, array("title" => $title)); $this->HTML .= li(getLanguage($category["Language"], TRUE) . $link); if ($this->parents($categories, $category["ID_Category"]) === TRUE) { $this->build($categories, $category["ID_Category"], $type); } $this->HTML .= li(FALSE); } } elseif ($type === "checkbox") { if (isset($category["checked"]) and $category["checked"]) { $check = TRUE; } elseif ((int) $category["ID_Category"] === $parent) { $check = TRUE; } else { $check = FALSE; } $attrs = array("id" => $name, "text" => getLanguage($category["Language"], TRUE), "name" => $name . "[]", "value" => $category["ID_Category"], "position" => "right", "checked" => $check); $input = formCheckbox($attrs); $link = a($title, FALSE, FALSE, array("title" => $title)); $this->HTML .= li($input . $link, TRUE); if ($this->parents($categories, $category["ID_Category"])) { $this->build($categories, $category["ID_Category"], $type); } $this->HTML .= li(FALSE); } else { $link = a($title, $URL . $category["Slug"], FALSE, array("title" => $title)); $this->HTML .= li($link, TRUE); if ($this->parents($categories, $category["ID_Category"])) { $this->build($categories, $category["ID_Category"], $type); } $this->HTML .= li(FALSE); } } } } $this->HTML .= closeUl(); return $this->HTML; }
public function build() { $HTML = NULL; $hide = FALSE; $option = FALSE; foreach ($this->columns as $column) { if (!in_array($column["Field"], $this->hide)) { if (count($this->hide) > 0) { if ($this->hideString and !$hide) { $attributes = array("type" => "hidden", "name" => "_hide", "value" => base64_encode($this->hideString)); $HTML .= formInput($attributes); unset($attributes); $hide = TRUE; } } if ($this->type($column["Type"]) === "string") { $attributes = array("type" => "text", "name" => $column["Field"], "class" => "input", "field" => $this->rename($column["Field"]), "p" => TRUE, "value" => !$this->success ? recoverPOST($column["Field"]) : NULL); if (isset($this->options)) { if (!$option) { $HTML .= formInput(array("type" => "hidden", "name" => "_options", "value" => base64_encode(serialize($this->options)))); $option = TRUE; } if (isset($this->options[$column["Field"]])) { if ($this->options[$column["Field"]]["type"] === "select") { $attrs = array("name" => $column["Field"], "class" => "select", "field" => $this->rename($column["Field"]), "p" => TRUE); $HTML .= formSelect($attrs, $this->options[$column["Field"]]["options"]); unset($attrs); } elseif ($this->options[$column["Field"]]["type"] === "radio") { $attrs = array("name" => $column["Field"], "class" => "radio", "field" => $this->rename($column["Field"]), "p" => TRUE); $HTML .= formRadio($attrs, $this->options[$column["Field"]]["options"]); unset($attrs); } elseif ($this->options[$column["Field"]]["type"] === "password") { $attrs = array("name" => $column["Field"], "type" => "password", "class" => "input", "field" => $this->rename($column["Field"]), "p" => TRUE); $HTML .= formInput($attrs); unset($attrs); } elseif ($this->options[$column["Field"]]["type"] === "hidden") { $attrs = array("name" => $column["Field"], "type" => "hidden", "value" => isset($this->options[$column["Field"]]["value"]) ? $this->options[$column["Field"]]["value"] : NULL); $HTML .= formInput($attrs); unset($attrs); } } else { $HTML .= formInput($attributes); } } else { $HTML .= formInput($attributes); } unset($attributes); } elseif ($this->type($column["Type"]) === "text") { $attributes = array("name" => $column["Field"], "class" => "editor textarea", "field" => $this->rename($column["Field"]), "p" => TRUE, "value" => !$this->success ? recoverPOST($column["Field"]) : NULL); $HTML .= formTextarea($attributes); } } } $HTML .= p(TRUE, "center"); $attributes = array("type" => "submit", "name" => "save", "value" => __("Save"), "class" => "submit"); $HTML .= formInput($attributes); unset($attributes); $attributes = array("type" => "submit", "name" => "cancel", "value" => __("Cancel"), "class" => "submit"); $HTML .= formInput($attributes); unset($attributes); $HTML .= p(FALSE); $HTML .= formClose(); return $HTML; }