</td>
    </tr>
    <tr> 
      <td width="24%"><div align="right"><?php 
echo $VM_LANG->_('PHPSHOP_PRODUCT_DISCOUNT_ENDDATE');
?>
:</div></td>
      <td width="76%"> 
        <input type="text" class="inputbox" name="end_date" id="end_date" value="<?php 
if ($db->sf("end_date")) {
    echo strftime("%Y-%m-%d", $db->sf("end_date"));
}
?>
" />
        <input name="reset" type="reset" class="button" onclick="return showCalendar('end_date', 'y-mm-dd');" value="..." />&nbsp;&nbsp;&nbsp;
        <?php 
echo mm_ToolTip($VM_LANG->_('PHPSHOP_PRODUCT_DISCOUNT_ENDDATE_TIP'));
?>
      </td>
    </tr>
    <tr> 
      <td valign="top" colspan="2" align="right">&nbsp; </td>
    </tr>   
  </table>

<?php 
// Add necessary hidden fields
$formObj->hiddenField('discount_id', $discount_id);
$funcname = empty($discount_id) ? "discountAdd" : "discountUpdate";
// finally close the form:
$formObj->finishForm($funcname, $modulename . '.product_discount_list', $option);
예제 #2
0
        $tmp_cell = "<a href=\"" . $sess->url($url) . "\">" . sprintf("%08d", $db->f("order_id")) . "</a><br />";
        $listObj->addCell($tmp_cell);
        $details_url = $sess->url($_SERVER['PHP_SELF'] . "?page=order.order_printdetails&amp;order_id=" . $db->f("order_id") . "&amp;no_menu=1");
        $details_url = stristr($_SERVER['PHP_SELF'], "index2.php") ? str_replace("index2.php", "index3.php", $details_url) : str_replace("index.php", "index2.php", $details_url);
        $details_link = "&nbsp;<a href=\"javascript:void window.open('{$details_url}', 'win2', 'status=no,toolbar=no,scrollbars=yes,titlebar=no,menubar=no,resizable=yes,width=640,height=480,directories=no,location=no');\">";
        $details_link .= "<img src=\"{$mosConfig_live_site}/images/M_images/printButton.png\" align=\"center\" height=\"16\" width=\"16\" border=\"0\" /></a>";
        $listObj->addCell($details_link);
        //$listObj->addCell( strftime("%d-%b-%y %H:%M", $db->f("cdate")));  //Original
        $listObj->addCell(date("Y-m-d G:i:s", $db->f("cdate") + $mosConfig_offset * 60 * 60));
        //Custom
        //$listObj->addCell( strftime("%d-%b-%y %H:%M", $db->f("mdate")));  //Original
        $listObj->addCell(date("Y-m-d G:i:s", $db->f("mdate") + $mosConfig_offset * 60 * 60));
        //Custom
        $listObj->addCell($ps_order_status->getOrderStatusName($db->f("order_status")));
        $listObj->addCell($CURRENCY_DISPLAY->getFullValue($db->f("order_total")));
        $listObj->addCell($ps_html->deleteButton("order_id", $db->f("order_id"), "orderDelete", $keyword, $limitstart . '&user_id=' . $user_id));
        $i++;
    }
    $listObj->writeTable();
    $listObj->endTable();
    $tabs->endTab();
}
$tabs->endPane();
// Add necessary hidden fields
$formObj->hiddenField('address_type', 'BT');
$formObj->hiddenField('address_type_name', '-default-');
$formObj->hiddenField('user_id', $user_id);
$funcname = $user_id ? "userUpdate" : "userAdd";
// Write your form with mixed tags and text fields
// and finally close the form:
$formObj->finishForm($funcname, 'admin.user_list', $option);
?>
" size="32" maxlength="255" />
		</td>
	</tr>
	<tr> 
		<td width="23%" height="10" valign="top"> 
			<div align="right"><?php 
echo $VM_LANG->_('PHPSHOP_ATTRIBUTE_FORM_ORDER');
?>
:</div>
		</td>
		<td width="77%" height="10"> 
			<input type="text" class="inputbox" name="attribute_list" value="<?php 
$db->sp("attribute_list");
?>
" size="5" maxlength="11" />
		</td>
	</tr>
	<tr> 
		<td colspan="2" height="22">&nbsp;</td>
	</tr>
</table>
<?php 
// Add necessary hidden fields
$formObj->hiddenField('product_id', $product_id);
$formObj->hiddenField('old_attribute_name', $attribute_name);
$formObj->hiddenField('return_args', $return_args);
$funcname = !empty($attribute_name) ? "productAttributeUpdate" : "productAttributeAdd";
// Write your form with mixed tags and text fields
// and finally close the form:
$formObj->finishForm($funcname, $modulename . '.product_attribute_list', $option);
예제 #4
0
//$ps_html->list_states("tax_state", $db->sf("tax_state"));
echo $ps_html->dynamic_state_lists("tax_country", "tax_state", $db->sf("tax_country"), $db->sf("tax_state"));
?>
      </td>
    </tr>
    <tr align="center">
      <td colspan="2" >&nbsp;</td>
    </tr>
    <tr> 
      <td align="right" ><?php 
echo $VM_LANG->_('PHPSHOP_TAX_FORM_RATE');
?>
:</td>
      <td> 
        <input type="text" class="inputbox" name="tax_rate" value="<?php 
$db->sp("tax_rate");
?>
" size="16" />
      </td>
    </tr>
    <tr align="center">
      <td colspan="2" >&nbsp;</td>
    </tr>
</table>
<?php 
// Add necessary hidden fields
$formObj->hiddenField('tax_rate_id', $tax_rate_id);
$funcname = !empty($tax_rate_id) ? "updatetaxrate" : "addtaxrate";
// Write your form with mixed tags and text fields
// and finally close the form:
$formObj->finishForm($funcname, $modulename . '.tax_list', $option);
        <?php 
echo vmToolTip($VM_LANG->_('PHPSHOP_SHOPPER_GROUP_FORM_DISCOUNT_TIP'));
?>
      </td>
    </tr> 
    <tr> 
      <td width="23%" valign="top"><strong><div align="right">
      <?php 
echo $VM_LANG->_('PHPSHOP_SHOPPER_GROUP_FORM_DESC');
?>
:</div></strong>
      </td>
      <td width="77%" valign="top" >
      <?php 
editorArea('editor1', $db->f('shopper_group_desc'), 'shopper_group_desc', 500, 250, 75, 25);
?>
      </td>
    </tr>
    <tr> 
      <td width="23%" valign="top" >&nbsp;</td>
      <td width="77%" valign="top" >&nbsp;</td>
    </tr>
</table>

<?php 
// Add necessary hidden fields
$formObj->hiddenField('shopper_group_id', $shopper_group_id);
$funcname = !empty($shopper_group_id) ? "shopperGroupUpdate" : "shopperGroupAdd";
// Write your form with mixed tags and text fields
// and finally close the form:
$formObj->finishForm($funcname, $modulename . '.shopper_group_list', $option);
예제 #6
0
?>
:</td>
      <td> 
        <input type="text" class="inputbox" name="file_url" value="<?php 
$db->sp("file_url");
?>
" size="32" />
      </td>
    </tr>
    <tr >
      <td colspan="2" align="center">&nbsp;</td>
    </tr>
  </table>
<?php 
// Add necessary hidden fields
$formObj->hiddenField('file_id', $file_id);
$formObj->hiddenField('product_id', $product_id);
$formObj->hiddenField('attribute_id', $attribute_id);
$funcname = empty($file_id) ? "uploadProductFile" : "updateProductFile";
// Write your form with mixed tags and text fields
// and finally close the form:
$formObj->finishForm($funcname, $modulename . '.file_list', $option);
?>
<script type="text/javascript">
function submitbutton(pressbutton) {
	document.adminForm.ajax_request.value='0';
	submitform(pressbutton);
}
function vm_windowClose() {
	vm_submitButton('cancel', 'adminForm', 'product.file_list');
}
예제 #7
0
    <tr> 
      <td valign="top" align="right" ><?php 
echo $VM_LANG->_('PHPSHOP_MODULE_FORM_DESCRIPTION');
?>
:</td>
      <td valign="top" >&nbsp;</td>
    </tr>
    <tr align="center"> 
      <td valign="top" colspan="2" > 
        <textarea name="module_description" cols="50" rows="10"><?php 
$db->sp("module_description");
?>
</textarea>
      </td>
    </tr>
    <tr> 
      <td width="24%" >&nbsp;</td>
      <td width="76%" >&nbsp;</td>
    </tr>
    <tr> 
      <td valign="top" colspan="2" align="center">&nbsp;</td>
    </tr>
    
  </table>
<?php 
// Add necessary hidden fields
$formObj->hiddenField('module_id', $module_id);
$funcname = !empty($module_id) ? "moduleUpdate" : "moduleAdd";
// Write your form with mixed tags and text fields
// and finally close the form:
$formObj->finishForm($funcname, 'admin.module_list', $option);
		    </fieldset>
 		</td>
 	</tr>
</table><br />
<fieldset>
	<legend><?php 
echo $VM_LANG->_('PHPSHOP_STORE_FORM_DESCRIPTION');
?>
</legend>
	<?php 
editorArea('editor1', $db->f("vendor_store_desc"), 'vendor_store_desc', '400', '200', '70', '15');
?>
</fieldset>
<fieldset>
	<legend><?php 
echo $VM_LANG->_('PHPSHOP_STORE_FORM_TOS');
?>
</legend>
    <?php 
editorArea('editor2', $db->f("vendor_terms_of_service"), 'vendor_terms_of_service', '400', '200', '70', '15');
?>
</fieldset>
<?php 
// Add necessary hidden fields
$formObj->hiddenField('vendor_id', $ps_vendor_id);
$formObj->hiddenField('vendor_thumb_image_action', 'none');
$formObj->hiddenField('vendor_full_image_action', 'none');
$formObj->hiddenField('pshop_mode', 'admin');
// Write your form with mixed tags and text fields
// and finally close the form:
$formObj->finishForm("vendorUpdate", $modulename . '.display', $option);
예제 #9
0
                $waiting_notified = '';
            }
            if ($dbw->f("user_id") == 0) {
                $waitinglist[] = '<a href="mailto:' . $dbw->f('notify_email') . '">' . $dbw->f('notify_email') . '</a>' . $waiting_notified;
            } else {
                $waitinglist[] = $dbw->f('name') . ' (' . $dbw->f('username') . ' - ' . '<a href="mailto:' . $dbw->f('notify_email') . '">' . $dbw->f('notify_email') . '</a>' . ')' . $waiting_notified;
            }
        }
        echo vmCommonHTML::getList($waitinglist);
        echo '</td></tr></table>';
        $tabs->endTab();
    }
}
$tabs->endPane();
// Add necessary hidden fields
$formObj->hiddenField('product_id', $product_id);
$formObj->hiddenField('product_parent_id', $product_parent_id);
$formObj->hiddenField('pshop_mode', 'admin');
if (!stristr($db->f("product_thumb_image"), "http") && $clone_product != "1") {
    $formObj->hiddenField('product_thumb_image_curr', $db->f("product_thumb_image"));
}
if (!stristr($db->f("product_full_image"), "http") && $clone_product != "1") {
    $formObj->hiddenField('product_full_image_curr', $db->f("product_full_image"));
}
$funcname = !empty($product_id) ? "productUpdate" : "productAdd";
// finally close the form:
$formObj->finishForm($funcname, $next_page, $option);
?>

<script type="text/javascript">
//<!--
예제 #10
0
?>
          </option>
        </select>
        <?php 
echo mm_ToolTip($VM_LANG->_('PHPSHOP_COUPON_TYPE_TOOLTIP'));
?>
      </td>
    </tr>
    <tr> 
      <td width="24%"><div align="right"><?php 
echo $VM_LANG->_('PHPSHOP_COUPON_VALUE');
?>
:</div></td>
      <td width="76%"> 
        <input type="text" class="inputbox" name="coupon_value" value="<?php 
$db->sp("coupon_value");
?>
" />
      </td>
    </tr>
    <tr> 
      <td valign="top" colspan="2" align="right">&nbsp; </td>
    </tr>   
  </table>
<?php 
$funcname = !empty($coupon_id) ? 'couponUpdate' : 'couponAdd';
// Add necessary hidden fields
$formObj->hiddenField('coupon_id', $coupon_id);
// Write your form with mixed tags and text fields
// and finally close the form:
$formObj->finishForm($funcname, $modulename . '.coupon_list', $option);
?>
:</td>
      <td> 
       	<?php 
editorArea('order_status_description', $db->sf("order_status_description"), 'order_status_description', 500, 250, 75, 25);
?>
      </td>
    </tr>
    <tr> 
      <td class="labelcell"><?php 
echo $VM_LANG->_('PHPSHOP_ORDER_STATUS_FORM_LIST_ORDER');
?>
:</td>
      <td> 
        <input type="text" class="inputbox" name="list_order" value="<?php 
$db->sp("list_order");
?>
" size="3" maxlength="3" />
      </td>
    </tr>
    <tr align="center">
      <td colspan="2">&nbsp;</td>
    </tr>    
</table>
<?php 
// Add necessary hidden fields
$formObj->hiddenField('order_status_id', $order_status_id);
$funcname = !empty($order_status_id) ? "orderstatusupdate" : "orderstatusadd";
// Write your form with mixed tags and text fields
// and finally close the form:
$formObj->finishForm($funcname, $modulename . '.order_status_list', $option);
echo $VM_LANG->_('PHPSHOP_PRODUCT_TYPE_FORM_BROWSEPAGE') . " " . $VM_LANG->_('PHPSHOP_LEAVE_BLANK');
?>
: </td>
      <td valign="top">
      <input type="text" class="inputbox" name="product_type_browsepage" value="<?php 
$db->sp("product_type_browsepage");
?>
" />
      </td>
	</tr>
	<tr>
      <td class="labelcell">
        <?php 
echo $VM_LANG->_('PHPSHOP_PRODUCT_TYPE_FORM_FLYPAGE') . " " . $VM_LANG->_('PHPSHOP_LEAVE_BLANK');
?>
:
      </td>
      <td valign="top">
      <input type="text" class="inputbox" name="product_type_flypage" value="<?php 
$db->sp("product_type_flypage");
?>
" />
      </td>
	</tr>
</table>
<?php 
// Add necessary hidden fields
$formObj->hiddenField('product_type_id', $product_type_id);
$funcname = !empty($product_type_id) ? "ProductTypeUpdate" : "ProductTypeAdd";
// finally close the form:
$formObj->finishForm($funcname, $modulename . '.product_type_list', $option);
	</tr>
	<tr> 
		<td width="38%" nowrap align="right" valign="top"><?php 
echo $VM_LANG->_('PHPSHOP_VENDOR_CAT_FORM_DESCRIPTION');
?>
:</td>
                  <td width="62%" valign="top"> 
                    <textarea name="vendor_category_desc" cols="40" rows="2" wrap="virtual"><?php 
$db->sp('vendor_category_desc');
?>
</textarea>
                  </td>
	</tr>
	<tr> 
                  <td width="38%" nowrap align="right" valign="top">&nbsp;</td>
                  <td width="62%" valign="top">&nbsp;</td>
	</tr>
	<tr> 
		<td align="center">&nbsp; </td>
	</tr>
	<tr> 
		<td align="center">&nbsp;</td>
	</tr>
</table>
<?php 
// Add necessary hidden fields
$formObj->hiddenField('vendor_category_id', $vendor_category_id);
$funcname = !empty($vendor_category_id) ? "vendorcategoryupdate" : "vendorcategoryadd";
// Write your form with mixed tags and text fields
// and finally close the form:
$formObj->finishForm($funcname, $modulename . '.vendor_category_list', $option);
              <div style="overflow:auto;">
                <?php 
echo $ps_product->image_tag($db->f("category_thumb_image"), "", 0, "category");
?>
              </div>
            </td>
          </tr>
        </table>
      </td>
    </tr>
  </table>
<?php 
$tabs->endTab();
$tabs->endPane();
// Add necessary hidden fields
$formObj->hiddenField('category_id', $category_id);
$funcname = !empty($category_id) ? "productCategoryUpdate" : "productCategoryAdd";
//finally close the form:
$formObj->finishForm($funcname, $modulename . '.product_category_list', $option);
?>
<script type="text/javascript">//<!--
function toggleDisable( elementOnChecked, elementDisable, disableOnChecked ) {
  if( !disableOnChecked ) {
    if(elementOnChecked.checked==true) {
      elementDisable.disabled=false; 
    }
    else {
      elementDisable.disabled=true;
    }
  }
  else {
예제 #15
0
			<label for="conf_VM_FEED_MAX_TEXT_LENGTH"><?php 
echo $VM_LANG->_('VM_ADMIN_CFG_FEED_MAX_TEXT_LENGTH');
?>
</label>
        </td>
        <td width="30%"><?php 
echo vmToolTip($VM_LANG->_('VM_ADMIN_CFG_MAX_TEXT_LENGTH_TIP'));
?>
        </td>
    </tr>
    </table>
  <?php 
$tabs->endTab();
$tabs->endPane();
// Add necessary hidden fields
$formObj->hiddenField('myname', 'Jabba Binks');
// Write your form with mixed tags and text fields
// and finally close the form:
$formObj->finishForm('writeConfig', 'store.index', $option);
?>
   
<br style="clear:both;" />
<script type="text/javascript">
function validateForm(pressbutton) {
	var form = document.adminForm;

	/* Shipping Configuration */
	var correct = false;
	var n = document.adminForm.shippingMethodCount.value;
	var fldName = 'sh';
	var f = document.adminForm;
예제 #16
0
?>
:</td>
      <td width="76%"> 
        <input type="text" class="inputbox" name="state_2_code" value="<?php 
$db->sp("state_2_code");
?>
" />
      </td>
    </tr>
        <tr> 
      <td width="24%" align="right"><?php 
echo $VM_LANG->_('PHPSHOP_STATE_LIST_3_CODE');
?>
:</td>
      <td width="76%"> 
        <input type="text" class="inputbox" name="state_3_code" value="<?php 
$db->sp("state_3_code");
?>
" />
      </td>
    </tr>
    
  </table>  
<?php 
// Add necessary hidden fields
$formObj->hiddenField('state_id', $state_id);
$formObj->hiddenField('country_id', $country_id);
$funcname = !empty($state_id) ? "stateUpdate" : "stateAdd";
// Write your form with mixed tags and text fields
// and finally close the form:
$formObj->finishForm($funcname, 'admin.country_state_list', $option);
예제 #17
0
:</td>
      <td width="76%"> 
        <input type="text" class="inputbox" name="currency_name" value="<?php 
$db->sp("currency_name");
?>
" />
      </td>
    </tr>
    <tr> 
      <td width="24%" align="right"><?php 
echo $VM_LANG->_('PHPSHOP_CURRENCY_LIST_CODE');
?>
:</td>
      <td width="76%"> 
        <input type="text" class="inputbox" name="currency_code" value="<?php 
$db->sp("currency_code");
?>
" />
      </td>
    </tr>
    <tr> 
      <td colspan="2">&nbsp;</td>
    </tr>
  </table>
<?php 
// Add necessary hidden fields
$formObj->hiddenField('currency_id', $currency_id);
$funcname = !empty($currency_id) ? "currencyUpdate" : "currencyAdd";
// Write your form with mixed tags and text fields
// and finally close the form:
$formObj->finishForm($funcname, 'admin.curr_list', $option);
예제 #18
0
:</td>
      <td width="78%" ><?php 
editorArea('editor1', $db->f("vendor_store_desc"), 'vendor_store_desc', '400', '200', '70', '15');
?>
      </td>
    </tr>
            <tr> 
      <td width="22%" align="right"  valign="top"><?php 
echo $VM_LANG->_('PHPSHOP_STORE_FORM_TOS');
?>
:</td>
      <td width="78%" ><?php 
editorArea('editor2', $db->f("vendor_terms_of_service"), 'vendor_terms_of_service', '400', '200', '70', '15');
?>
      </td>
    </tr>
    <tr align="center"> 
      <td colspan="2" >&nbsp;</td>
    </tr> 
  </table>
<?php 
$tabs->endTab();
$tabs->endPane();
// Add necessary hidden fields
$formObj->hiddenField('vendor_id', $vendor_id);
$formObj->hiddenField('vendor_thumb_image_action', 'none');
$formObj->hiddenField('vendor_full_image_action', 'none');
$funcname = !empty($vendor_id) ? "vendorupdate" : "vendoradd";
// Write your form with mixed tags and text fields
// and finally close the form:
$formObj->finishForm($funcname, $modulename . '.vendor_list', $option);
if ($ps_function->userCanExecuteFunc($funcname)) {
    if (empty($userid)) {
        $userid = $my->id;
    }
    $q = "SELECT review_id, product_id, userid, comment, user_rating FROM #__{vm}_product_reviews WHERE review_id=" . $review_id;
    $db->query($q);
    $uid = $db->f('userid') ? $db->f("userid") : $my->id;
    if (empty($product_id)) {
        $product_id = $db->f('product_id');
    }
    // Create the Form Control Object
    $formObj = new formFactory($VM_LANG->_('PHPSHOP_REVIEW_EDIT'));
    // Start the the Form
    $formObj->startForm();
    // Add necessary hidden fields
    $formObj->hiddenField('review_id', $review_id);
    $formObj->hiddenField('product_id', $product_id);
    $formObj->hiddenField('userid', $uid);
    $formObj->hiddenField('pshop_mode', 'admin');
    $rating_table = "<table cellpadding=\"5\" summary=\"" . $VM_LANG->_('PHPSHOP_REVIEW_RATE') . "\">\r\n              <tr>\r\n                <th id=\"five_stars\">\r\n                \t<label for=\"user_rating5\"><img alt=\"5 stars\" src=\"" . VM_THEMEURL . "images/stars/5.gif\" border=\"0\" /></label>\r\n                </th>\r\n                <th id=\"four_stars\">\r\n                \t<label for=\"user_rating4\"><img alt=\"4 stars\" src=\"" . VM_THEMEURL . "images/stars/4.gif\" border=\"0\" /></label>\r\n                </th>\r\n                <th id=\"three_stars\">\r\n                \t<label for=\"user_rating3\"><img alt=\"3 stars\" src=\"" . VM_THEMEURL . "images/stars/3.gif\" border=\"0\" /></label>\r\n                </th>\r\n                <th id=\"two_stars\">\r\n                \t<label for=\"user_rating2\"><img alt=\"2 stars\" src=\"" . VM_THEMEURL . "images/stars/2.gif\" border=\"0\" /></label>\r\n                </th>\r\n                <th id=\"one_star\">\r\n                \t<label for=\"user_rating1\"><img alt=\"1 star\" src=\"" . VM_THEMEURL . "images/stars/1.gif\" border=\"0\" /></label>\r\n                </th>\r\n                <th id=\"null_stars\">\r\n                \t<label for=\"user_rating0\"><img alt=\"0 stars\" src=\"" . VM_THEMEURL . "images/stars/0.gif\" border=\"0\" /></label>\r\n                </th>\r\n              </tr>\r\n              <tr>\r\n                <td headers=\"five_stars\" style=\"text-align:center;\">\r\n                  <input type=\"radio\" id=\"user_rating5\" name=\"user_rating\" value=\"5\" />\r\n                </td>\r\n                <td headers=\"four_stars\" style=\"text-align:center;\">\r\n                \t<input type=\"radio\" id=\"user_rating4\" name=\"user_rating\" value=\"4\" />\r\n                </td>\r\n                <td headers=\"three_stars\" style=\"text-align:center;\">\r\n                \t<input type=\"radio\" id=\"user_rating3\" name=\"user_rating\" value=\"3\" />\r\n                </td>\r\n                <td headers=\"two_stars\" style=\"text-align:center;\">\r\n                \t<input type=\"radio\" id=\"user_rating2\" name=\"user_rating\" value=\"2\" />\r\n                </td>\r\n                <td headers=\"one_star\" style=\"text-align:center;\">\r\n                \t<input type=\"radio\" id=\"user_rating1\" name=\"user_rating\" value=\"1\" />\r\n                </td>\r\n                <td headers=\"null_stars\" style=\"text-align:center;\">\r\n                \t<input type=\"radio\" id=\"user_rating0\" name=\"user_rating\" value=\"0\" />\r\n                </td>\r\n              </tr>\r\n            </table>";
    ?>
<table class="adminform">
	<tr> 
		<td ><?php 
    echo $VM_LANG->_('PHPSHOP_REVIEW_RATE');
    ?>
</td>
		<td ><?php 
    echo $rating_table;
    ?>
</td>
}
$_PAYMENT->show_configuration();
echo '<br />
<strong>' . $VM_LANG->_('VM_PAYMENT_EXTRAINFO') . ':';
echo mm_ToolTip($VM_LANG->_('VM_PAYMENT_EXTRAINFO_TIP'));
?>
<br />
<textarea class="inputbox" name="payment_extrainfo" cols="120" rows="20"><?php 
echo htmlspecialchars($db->sf("payment_extrainfo"));
?>
</textarea>
<?php 
$tabs->endTab();
$tabs->endPane();
// Add necessary hidden fields
$formObj->hiddenField('payment_method_id', $payment_method_id);
$funcname = !empty($payment_method_id) ? "paymentMethodUpdate" : "paymentMethodAdd";
// Write your form with mixed tags and text fields
// and finally close the form:
$formObj->finishForm($funcname, $modulename . '.payment_method_list', $option);
?>

  <script type="text/javascript">
function check() {
   if (document.adminForm.enable_processor[0].checked == true || document.adminForm.enable_processor[1].checked == true) {
      document.getElementById('accepted_creditcards1').innerHTML = '<strong><?php 
echo $VM_LANG->_('VM_PAYMENT_ACCEPTED_CREDITCARDS');
?>
:';
      if (document.getElementById('accepted_creditcards_store').innerHTML != '')
        document.getElementById('accepted_creditcards2').innerHTML ='<input type="text" name="accepted_creditcards" value="' + document.getElementById('accepted_creditcards_store').innerHTML + '" class="inputbox" />';
예제 #21
0
require_once CLASSPATH . 'ps_zone.php';
$ps_zone = new ps_zone();
$country_id = vmGet($_REQUEST, 'country_id');
$option = empty($option) ? vmGet($_REQUEST, 'option', 'com_virtuemart') : $option;
if (!empty($country_id)) {
    $q = "SELECT * from #__{vm}_country WHERE country_id='{$country_id}'";
    $db->query($q);
    $db->next_record();
}
$funcname = !empty($country_id) ? "countryUpdate" : "countryAdd";
// Create the Form Control Object
$formObj = new formFactory($VM_LANG->_('PHPSHOP_COUNTRY_LIST_ADD'));
// Start the the Form
$formObj->startForm();
// Add necessary hidden fields
$formObj->hiddenField('country_id', $country_id);
?>
<table class="adminform">
	<tr> 
		<td colspan="2">&nbsp;</td>
	</tr>
	<tr> 
		<td width="24%" align="right"><?php 
echo $VM_LANG->_('PHPSHOP_COUNTRY_LIST_NAME');
?>
:</td>
		<td width="76%"> 
			<input type="text" class="inputbox" name="country_name" value="<?php 
$db->sp("country_name");
?>
" />
예제 #22
0
}
?>
<br />
<table class="adminform">
	<tr>
		<td width="21%" ><div align="right"><?php 
echo $VM_LANG->_('PHPSHOP_CARRIER_FORM_NAME');
?>
:</div></td>
		<td width="79%" ><input class="inputbox" type="text" name="shipping_carrier_name" size="32" maxlength="255" value="<?php 
$db->sp("shipping_carrier_name");
?>
"></td>
	</tr>
	<tr>
		<td width="21%" ><div align="right"><?php 
echo $VM_LANG->_('PHPSHOP_CARRIER_FORM_LIST_ORDER');
?>
:</div></td>
		<td width="79%" ><input class="inputbox" type="text" name="shipping_carrier_list_order" size="32" maxlength="255" value="<?php 
$db->sp("shipping_carrier_list_order");
?>
"></td>
	</tr>
</table>
<?php 
// Add necessary hidden fields
$formObj->hiddenField('shipping_carrier_id', $shipping_carrier_id);
$funcname = !empty($shipping_carrier_id) ? "carrierupdate" : "carrieradd";
// finally close the form:
$formObj->finishForm($funcname, $modulename . '.carrier_list', $option);
예제 #23
0
	<tr>
		<td width="21%" ><div align="right"><strong><?php 
echo $VM_LANG->_('PHPSHOP_RATE_FORM_CURRENCY');
?>
:</strong></div></td>
		<td width="79%" >
		<?php 
$ps_html->list_currency_id("shipping_rate_currency_id", $db->sf("shipping_rate_currency_id"));
?>
		</td>
	</tr>
	<tr>
		<td width="21%" ><div align="right"><strong><?php 
echo $VM_LANG->_('PHPSHOP_RATE_FORM_VAT_ID');
?>
:</strong></div></td>
		<td width="79%" >
		<?php 
require_once CLASSPATH . 'ps_tax.php';
$ps_tax = new ps_tax();
$ps_tax->list_tax_value("shipping_rate_vat_id", $db->sf("shipping_rate_vat_id"));
?>
		</td>
	</tr>
</table>
<?php 
// Add necessary hidden fields
$formObj->hiddenField('shipping_rate_id', $shipping_rate_id);
$funcname = !empty($shipping_rate_id) ? "rateupdate" : "rateadd";
// finally close the form:
$formObj->finishForm($funcname, $modulename . '.rate_list', $option);
$title = '&nbsp;&nbsp;<img src="' . VM_THEMEURL . 'images/administration/header/icon-48-config.png" align="middle" border="0" alt="' . $VM_LANG->_('VM_ADMIN_CFG_THEME_SETTINGS') . '" />&nbsp;';
$title .= $VM_LANG->_('VM_ADMIN_CFG_THEME_SETTINGS');
//First create the object and let it print a form heading
$formObj = new formFactory($title);
//Then Start the form
$formObj->startForm();
$ps_html->writableIndicator($themepath . '/theme.config.php', 'text-align:left;width:78%;');
vmCommonHTML::loadExtjs();
?>

	<fieldset style="width: 80%">
		<legend><?php 
echo $VM_LANG->_('VM_ADMIN_CFG_THEME_PARAMETERS');
?>
</legend>
		<table class="adminform">
		<tr>
			<td>
			<?php 
echo $params->render();
?>
			</td>
		</tr>
		</table>
	</fieldset>
	
<?php 
// Add necessary hidden fields
$formObj->hiddenField('ajax_request', $only_page);
// Close the form
$formObj->finishForm('writeThemeConfig', 'store.index', $option);
while ($db->next_record()) {
    if ($first) {
        $q .= " WHERE ";
        $first = false;
    }
    $q .= "product_type_id != '" . $db->f("product_type_id") . "' ";
    if (!$db->is_last_record()) {
        $q .= "AND ";
    }
}
$q .= "ORDER BY product_type_list_order ASC";
$db->query($q);
while ($db->next_record()) {
    echo "<option value=\"" . $db->f("product_type_id") . "\">" . $db->f("product_type_name") . "</option>";
}
echo "</select>";
?>
      </td>
    </tr>
</table>

<?php 
// Add necessary hidden fields
foreach ($product_id as $prod_id) {
    $formObj->hiddenField('product_id[]', $prod_id);
}
$formObj->hiddenField('product_parent_id', $product_parent_id);
$formObj->hiddenField('return_args', $return_args);
//
// finally close the form:
$formObj->finishForm('productProductTypeAdd', $modulename . '.product_product_type_list', $option);
      <td width="24%" align="right"><?php 
echo $VM_LANG->_('PHPSHOP_CREDITCARD_NAME');
?>
:</td>
      <td width="76%"> 
        <input type="text" class="inputbox" name="creditcard_name" value="<?php 
$db->sp("creditcard_name");
?>
" />
      </td>
    </tr>
    <tr> 
      <td width="24%" align="right"><?php 
echo $VM_LANG->_('PHPSHOP_CREDITCARD_CODE');
?>
:</td>
      <td width="76%"> 
        <input type="text" class="inputbox" name="creditcard_code" value="<?php 
$db->sp("creditcard_code");
?>
">
      </td>
    </tr>
</table>
<?php 
// Add necessary hidden fields
$formObj->hiddenField('creditcard_id', $creditcard_id);
$funcname = !empty($creditcard_id) ? "creditcardUpdate" : "creditcardAdd";
// Write your form with mixed tags and text fields
// and finally close the form:
$formObj->finishForm($funcname, $modulename . '.creditcard_list', $option);
mm_showMyFileName(__FILE__);
require_once CLASSPATH . 'usergroup.class.php';
$usergroup = new vmUserGroup();
$group_id = (int) vmGet($_REQUEST, 'group_id', 0);
$option = empty($option) ? vmGet($_REQUEST, 'option', 'com_virtuemart') : $option;
if (!empty($group_id)) {
    $db = $usergroup->get_group($group_id);
} else {
}
$funcname = !empty($group_id) ? "usergroupUpdate" : "usergroupAdd";
// Create the Form Control Object
$formObj = new formFactory($VM_LANG->_('VM_USERGROUP_FORM_LBL'));
// Start the the Form
$formObj->startForm();
// Add necessary hidden fields
$formObj->hiddenField('group_id', $group_id);
?>
<table class="adminform">
	<tr> 
		<td colspan="2">&nbsp;</td>
	</tr>
	<tr> 
		<td width="24%" align="right"><?php 
echo $VM_LANG->_('VM_USERGROUP_NAME');
?>
:</td>
		<td width="76%"> 
			<input type="text" class="inputbox" name="group_name" value="<?php 
$db->sp("group_name");
?>
" />
      <td>
        <input type="text" class="inputbox" name="mf_email" value="<?php 
$db->sp("mf_email");
?>
" size="18" />
      </td>
    </tr>
    <tr> 
      <td align="right" >&nbsp;</td>
      <td>&nbsp;</td>
    </tr>
    <tr> 
      <td width="22%" align="right"  valign="top"><?php 
echo $VM_LANG->_('PHPSHOP_MANUFACTURER_FORM_DESCRIPTION');
?>
:</td>
      <td width="78%" ><?php 
editorArea('editor1', $db->f("mf_desc"), 'mf_desc', '300', '150', '70', '25');
?>
      </td>
    <tr align="center"> 
      <td colspan="2" >&nbsp;</td>
    </tr>
</table>
<?php 
// Add necessary hidden fields
$formObj->hiddenField('manufacturer_id', $manufacturer_id);
$funcname = !empty($manufacturer_id) ? "manufacturerupdate" : "manufactureradd";
// Write your form with mixed tags and text fields
// and finally close the form:
$formObj->finishForm($funcname, $modulename . '.manufacturer_list', $option);
:</td>
      <td valign="top">&nbsp;</td>
    </tr>
    <tr align="center"> 
      <td valign="top" colspan="2"> 
        <textarea name="function_description" cols="60" rows="10"><?php 
$db->sp("function_description");
?>
</textarea>
      </td>
    </tr>
   
  </table>
<?php 
// Add necessary hidden fields
$formObj->hiddenField('function_id', $function_id);
$formObj->hiddenField('module_id', $module_id);
$funcname = !empty($function_id) ? "functionUpdate" : "functionAdd";
// Write your form with mixed tags and text fields
// and finally close the form:
$formObj->finishForm($funcname, 'admin.function_list', $option);
$script = 'function updateFunc(){
	var el = $("function_class" );
	new Ajax( "' . $_SERVER['PHP_SELF'] . '?" + $(document.adminForm).toQueryString() + "&func=&page=admin.ajax_tools&task=get_class_methods&class=" + el.options[el.selectedIndex].value + "&function=" + document.adminForm.function_method.value,
				{ 
				method: "get",
				update: $("function_method_container")
				}).request();

		return false;
	}
예제 #30
0
    echo "\n<td width=\"80%\"><input type=\"text\" value=\"\" name=\"vValues[0]\" /></td></tr>\n";
    $i = 0;
}
?>
			</tbody>
			</table>
		</div>
	  <table class="adminform">
			<tr>
				<td colspan="3">&nbsp;</td>
			</tr>
	
	  </table>
 <?php 
// Add necessary hidden fields
$formObj->hiddenField('fieldid', $fieldid);
$formObj->hiddenField('valueCount', $i);
$formObj->hiddenField('ordering', $db->f('ordering'));
// Write your form with mixed tags and text fields
// and finally close the form:
$formObj->finishForm('userfieldSave', $modulename . '.user_field_list', $option);
$duration = 500;
?>
<script type="text/javascript">
  function getObject(obj) {
    var strObj;
    if (document.all) {
      strObj = document.all.item(obj);
    } else if (document.getElementById) {
      strObj = document.getElementById(obj);
    }