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


PHP vmCommonHTML::getErrorField方法代码示例

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


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

示例1: explode

             }
             $my_page = explode('.', $page);
             $modulename = $my_page[0];
             $pagename = $my_page[1];
             $_REQUEST['keyword'] = vmGet($_SESSION['session_userstate'], 'keyword');
             $_REQUEST['category_id'] = vmGet($_SESSION['session_userstate'], 'category_id');
             $_REQUEST['product_id'] = $product_id = $_SESSION['session_userstate']['product_id'];
         }
     } else {
         $vmLogger->debug("Could not include the class file {$class}");
     }
     if (!empty($vars["error"])) {
         $error = vmGet($vars, 'error');
     }
     if (!empty($error)) {
         echo vmCommonHTML::getErrorField($error);
     }
 } else {
     $no_last = 0;
     //$error="";
 }
 // If this is an asynchronous page load,
 // we clear the output buffer and just send the log messages.
 // the variable named 'ajax_request' has to be set to 1.
 if ($func && $ajax_request) {
     // Send an indicator wether the function call return true or false
     vmCommonHTML::getSuccessIndicator($ok, $vmDisplayLogger);
     $vm_mainframe->close(true);
     //die
 }
 if ($ok == true && empty($error) && !defined('_DONT_VIEW_PAGE') && !strstr($page, 'ajax')) {
开发者ID:noikiy,项目名称:owaspbwa,代码行数:31,代码来源:virtuemart_parser.php

示例2:

	<?php 
    if ($db->f("order_status") == "P") {
        // Copy the db object to prevent it gets altered
        $db_temp = ps_DB::_clone($db);
        /** Start printing out HTML Form code (Payment Extra Info) **/
        ?>
	<table width="100%">
	  <tr>
	    <td width="100%" align="center">
	    <?php 
        @(include CLASSPATH . "payment/" . $dbpm->f("payment_class") . ".cfg.php");
        echo DEBUG ? vmCommonHTML::getInfoField('Beginning to parse the payment extra info code...') : '';
        // Here's the place where the Payment Extra Form Code is included
        // Thanks to Steve for this solution (why make it complicated...?)
        if (eval('?>' . $dbpm->f("payment_extrainfo") . '<?php ') === false) {
            echo vmCommonHTML::getErrorField("Error: The code of the payment method " . $dbpm->f('payment_method_name') . ' (' . $dbpm->f('payment_method_code') . ') ' . 'contains a Parse Error!<br />Please correct that first');
        }
        ?>
	    </td>
	  </tr>
	</table>
	<?php 
        $db = $db_temp;
    }
    // END printing out HTML Form code (Payment Extra Info)
    ?>
	<table border="0" cellspacing="0" cellpadding="2" width="100%">
	  <!-- begin customer information --> 
	  <tr class="sectiontableheader"> 
	    <th align="left" colspan="2"><?php 
    echo $VM_LANG->_('PHPSHOP_ACC_ORDER_INFO');
开发者ID:noikiy,项目名称:owaspbwa,代码行数:31,代码来源:account.order_details.tpl.php

示例3: mm_showMyFileName

* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
* See /administrator/components/com_virtuemart/COPYRIGHT.php for copyright notices and details.
*
* http://virtuemart.net
*/
mm_showMyFileName(__FILE__);
$theme = vmGet($_REQUEST, 'theme', 'default');
$themepath = $mosConfig_absolute_path . '/components/com_virtuemart/themes/' . basename($theme);
if (!file_exists($themepath)) {
    echo '<script type="text/javascript">alert(\'' . str_replace('{theme}', basename(shopMakeHtmlSafe($theme)), $VM_LANG->_('VM_ADMIN_THEME_NOT_EXISTS')) . '\');history.back();</script>';
    exit;
}
if (!file_exists($themepath . '/theme.config.php')) {
    if (!fopen($themepath . '/theme.config.php', 'w')) {
        echo vmCommonHTML::getErrorField($VM_LANG->_('VM_ADMIN_THEME_CFG_NOT_EXISTS'));
        return;
    }
}
$current_config = file_get_contents($themepath . '/theme.config.php');
$parameter_xml_file = $themepath . '/theme.xml';
// get params definitions
$params = new vmParameters($current_config, $parameter_xml_file, 'theme');
$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();
开发者ID:BackupTheBerlios,项目名称:kmit-svn,代码行数:31,代码来源:admin.theme_config_form.php


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