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


PHP LoadStringResource函数代码示例

本文整理汇总了PHP中LoadStringResource函数的典型用法代码示例。如果您正苦于以下问题:PHP LoadStringResource函数的具体用法?PHP LoadStringResource怎么用?PHP LoadStringResource使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。


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

示例1: LoadStringResource

 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version 2
 * of the License, or (at your option) any later version.
 *
 * Double Choco Latte is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 *
 * Select License Info from the Help menu to view the terms and conditions of this license.
 */
LoadStringResource('faq');
class htmlFaqanswers
{
    function DisplayForm($obj = '')
    {
        global $dcl_info, $g_oSec;
        $isEdit = is_object($obj);
        if (!$g_oSec->HasPerm(DCL_ENTITY_FAQANSWER, $isEdit ? DCL_PERM_MODIFY : DCL_PERM_ADD)) {
            return PrintPermissionDenied();
        }
        $t =& CreateSmarty();
        $t->assign('IS_EDIT', $isEdit);
        if ($isEdit) {
            $t->assign('VAL_ANSWERTEXT', $obj->answertext);
            $t->assign('VAL_ANSWERID', $obj->answerid);
            $t->assign('VAL_QUESTIONID', $obj->questionid);
开发者ID:ljvblfz,项目名称:mysoftwarebrasil,代码行数:31,代码来源:class.htmlFaqanswers.inc.php

示例2: LoadStringResource

 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version 2
 * of the License, or (at your option) any later version.
 *
 * Double Choco Latte is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 *
 * Select License Info from the Help menu to view the terms and conditions of this license.
 */
LoadStringResource('sev');
class htmlSeverities
{
    function GetCombo($default = 0, $cbName = 'severity', $longShort = 'name', $size = 0, $activeOnly = true, $setid = 0)
    {
        $query = "SELECT a.id,a.{$longShort} FROM severities a";
        if ($setid > 0) {
            $query .= ",attributesetsmap b WHERE a.id=b.keyid AND b.typeid=3 AND b.setid={$setid}";
            if ($activeOnly) {
                $query .= ' AND a.active=\'Y\'';
            }
            $query .= ' ORDER BY b.weight';
        } else {
            if ($activeOnly) {
                $query .= ' WHERE a.active=\'Y\'';
            }
开发者ID:ljvblfz,项目名称:mysoftwarebrasil,代码行数:31,代码来源:class.htmlSeverities.inc.php

示例3: LoadStringResource

 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version 2
 * of the License, or (at your option) any later version.
 *
 * Double Choco Latte is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 *
 * Select License Info from the Help menu to view the terms and conditions of this license.
 */
LoadStringResource('attr');
class htmlAttributesetdetail
{
    function Show($obj)
    {
        global $dcl_info, $g_oSec;
        if (!$g_oSec->HasPerm(DCL_ENTITY_ATTRIBUTESETS, DCL_PERM_VIEW)) {
            return PrintPermissionDenied();
        }
        if (!is_object($obj)) {
            trigger_error('[htmlAttributesets::Show] ' . STR_ATTR_OBJECTNOTPASSED);
            return;
        }
        $t = CreateSmarty();
        $t->assign('VAL_ATTRIBUTESETNAME', $obj->name);
        SmartyDisplay($t, 'htmlAttributesetdetail.tpl');
开发者ID:ljvblfz,项目名称:mysoftwarebrasil,代码行数:31,代码来源:class.htmlAttributesetdetail.inc.php

示例4: LoadStringResource

 * as published by the Free Software Foundation; either version 2
 * of the License, or (at your option) any later version.
 *
 * Double Choco Latte is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 *
 * Select License Info from the Help menu to view the terms and conditions of this license.
 */
LoadStringResource('prj');
LoadStringResource('wo');
class htmlProjectsform
{
    function Show($obj = '')
    {
        global $dcl_info, $g_oSec;
        $isEdit = is_object($obj);
        if (!$g_oSec->HasPerm(DCL_ENTITY_PROJECT, $isEdit ? DCL_PERM_MODIFY : DCL_PERM_ADD)) {
            return PrintPermissionDenied();
        }
        $t = CreateSmarty();
        $objPrj = CreateObject('dcl.htmlProjects');
        $objHTMLPersonnel = CreateObject('dcl.htmlPersonnel');
        $oStatus = CreateObject('dcl.htmlStatuses');
        if ($isEdit) {
            $t->assign('VAL_PROJECTID', $obj->projectid);
开发者ID:ljvblfz,项目名称:mysoftwarebrasil,代码行数:31,代码来源:class.htmlProjectsform.inc.php

示例5: LoadStringResource

 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version 2
 * of the License, or (at your option) any later version.
 *
 * Double Choco Latte is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 *
 * Select License Info from the Help menu to view the terms and conditions of this license.
 */
LoadStringResource('vw');
class htmlView
{
    var $sColumnTitle;
    var $bColumnSort;
    var $bShowPager;
    var $sPagingMenuAction;
    var $Template;
    var $oDB;
    var $bNeedsHeader;
    var $oView;
    var $aGroups;
    var $aSumCols;
    function htmlView()
    {
        $this->oDB = CreateObject('dcl.dbWorkorders');
开发者ID:ljvblfz,项目名称:mysoftwarebrasil,代码行数:31,代码来源:class.htmlView.inc.php

示例6: commonHeader

function commonHeader($formValidateSrc = '', $onLoad = '')
{
    if (defined('HTML_HEADER_GENERATED')) {
        return;
    }
    header('Content-Type: text/html; charset=iso-8859-1');
    header('Expires: Fri, 11 Oct 1991 17:01:00 GMT');
    header('Cache-Control: no-cache, must-revalidate');
    global $phpgw, $dcl_info, $dcl_domain, $dcl_domain_info;
    define('HTML_HEADER_GENERATED', 1);
    $bHideMenu = isset($_REQUEST['hideMenu']) && $_REQUEST['hideMenu'] == 'true';
    $title = '[' . $dcl_domain_info[$dcl_domain]['name'] . ' / ' . $GLOBALS['DCLNAME'] . ']';
    if ($dcl_info['DCL_HTML_TITLE'] != '') {
        $title .= ' - ' . $dcl_info['DCL_HTML_TITLE'];
    }
    if (!$bHideMenu) {
        LoadStringResource('menu');
        buildMenuArray();
    }
    $t =& CreateSmarty();
    $t->assign('VAL_TITLE', $title);
    SmartyDisplay($t, 'index.tpl');
    $sTemplateSet = GetDefaultTemplateSet();
    if (!$bHideMenu && file_exists(DCL_ROOT . 'templates/' . $sTemplateSet . '/menu.php')) {
        include DCL_ROOT . 'templates/' . $sTemplateSet . '/menu.php';
        renderDCLMenu();
    }
}
开发者ID:ljvblfz,项目名称:mysoftwarebrasil,代码行数:28,代码来源:functions.inc.php

示例7: LoadStringResource

 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 *
 * Select License Info from the Help menu to view the terms and conditions of this license.
 *
 * License Note:
 *
 * format_html contains some code from WIKIPLAM.  The original WIKIPLAM source is covered
 * by the Free Art License (http://artlibre.org/licence.php/lalgb.html)
 */
LoadStringResource('wiki');
class htmlWiki
{
    var $t;
    var $aLockedPages;
    function htmlWiki()
    {
        $this->t = CreateTemplate(array('hForm' => 'htmlWiki.tpl'));
        $this->t->set_block('hForm', 'display', 'hDisplay');
        $this->t->set_block('hForm', 'edit', 'hEdit');
        $this->t->set_block('hForm', 'editlink', 'hEditlink');
        $this->t->set_block('hForm', 'noedit', 'hNoedit');
        $this->t->set_block('hForm', 'wiki', 'hWiki');
        $this->t->set_var('hDisplay', '');
        $this->t->set_var('hEdit', '');
        $this->t->set_var('hEditlink', '');
开发者ID:ljvblfz,项目名称:mysoftwarebrasil,代码行数:31,代码来源:class.htmlWiki.inc.php

示例8: LoadStringResource

 * of the License, or (at your option) any later version.
 *
 * Double Choco Latte is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 *
 * Select License Info from the Help menu to view the terms and conditions of this license.
 */
LoadStringResource('wo');
LoadStringResource('tck');
LoadStringResource('menu');
// If we're framed, this isn't loaded every time
class htmlAgg
{
    var $group;
    var $sub;
    var $_aTypeInfo;
    function htmlAgg()
    {
        $this->group = isset($_REQUEST['group']) ? $_REQUEST['group'] : '';
        $this->sub = isset($_REQUEST['sub']) ? $_REQUEST['sub'] : '';
        $this->_aTypeInfo = array('workorders' => array('__title__' => DCL_MENU_WORKORDERS, 'account' => array('dcl_wo_account', 'Organizations', 'a.account_id', 'ac.name', 'ac.org_id', ''), 'assigned' => array('personnel', STR_WO_RESPONSIBLE, 'w.responsible', 'a.short', 'a.id', ''), 'reportto' => array('personnel', 'My Minions', 'w.responsible', 'a.short', 'a.id', 'a.reportto = ' . $GLOBALS['DCLID']), 'product' => array('products', STR_WO_PRODUCT, 'w.product', 'a.name', 'a.id', ''), 'priority' => array('priorities', STR_WO_PRIORITY, 'w.priority', 'a.name', 'a.id', ''), 'severity' => array('severities', STR_WO_SEVERITY, 'w.severity', 'a.name', 'a.id', ''), 'wo_type_id' => array('dcl_wo_type', STR_WO_TYPE, 'w.wo_type_id', 'a.type_name', 'a.wo_type_id', '')), 'tickets' => array('__title__' => DCL_MENU_TICKETS, 'account' => array('dcl_org', 'Organizations', 'w.account', 'a.name', 'a.org_id', ''), 'assigned' => array('personnel', STR_TCK_RESPONSIBLE, 'w.responsible', 'a.short', 'a.id', ''), 'reportto' => array('personnel', 'My Minions', 'w.responsible', 'a.short', 'a.id', 'a.reportto = ' . $GLOBALS['DCLID']), 'product' => array('products', STR_TCK_PRODUCT, 'w.product', 'a.name', 'a.id', ''), 'priority' => array('priorities', STR_TCK_PRIORITY, 'w.priority', 'a.name', 'a.id', ''), 'severity' => array('severities', STR_TCK_TYPE, 'w.severity', 'a.name', 'a.id', '')));
    }
    function GetBox()
    {
    }
开发者ID:ljvblfz,项目名称:mysoftwarebrasil,代码行数:31,代码来源:class.htmlAgg.inc.php

示例9: LoadStringResource

 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version 2
 * of the License, or (at your option) any later version.
 *
 * Double Choco Latte is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 *
 * Select License Info from the Help menu to view the terms and conditions of this license.
 */
LoadStringResource('bm');
class htmlBuildManagerVersionView
{
    var $productid;
    function htmlBuildManagerVersionView()
    {
        $this->productid = 0;
    }
    function Render($oView)
    {
        global $dcl_info, $g_oSec, $g_oSession;
        commonHeader();
        if (!$g_oSec->HasPerm(DCL_ENTITY_BUILDMANAGER, DCL_PERM_VIEW)) {
            return PrintPermissionDenied();
        }
        $oDB = CreateObject('dcl.dbBuildManager');
开发者ID:ljvblfz,项目名称:mysoftwarebrasil,代码行数:31,代码来源:class.htmlBuildManagerVersionView.inc.php

示例10: LoadStringResource

 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version 2
 * of the License, or (at your option) any later version.
 *
 * Double Choco Latte is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 *
 * Select License Info from the Help menu to view the terms and conditions of this license.
 */
LoadStringResource('wost');
class scheduleByPerson
{
    function SetNextWorkDay(&$thisDate)
    {
        $oneDay = 86400;
        $thisDate += $oneDay;
        while (date('w', $thisDate) == 0 || date('w', $thisDate) == 6) {
            $thisDate += $oneDay;
        }
    }
    function ScheduleTask(&$startDate, &$endDate, $etcHours, $hoursInDay, &$hoursLeftInDay)
    {
        if ($hoursLeftInDay <= 0) {
            $this->SetNextWorkDay($startDate);
            $hoursLeftInDay = $hoursInDay;
开发者ID:ljvblfz,项目名称:mysoftwarebrasil,代码行数:31,代码来源:class.scheduleByPerson.inc.php

示例11: Refresh

     if (strlen($dcl_session_id) != 32) {
         Refresh(DCL_WWW_ROOT . 'logout.php?cd=2');
     }
     if (!$g_oSession->conn) {
         Refresh(DCL_WWW_ROOT . 'logout.php?cd=3');
     }
     if ($g_oSession->Load($dcl_session_id) == false) {
         Refresh(DCL_WWW_ROOT . 'logout.php?cd=2');
     }
     if (!$g_oSession->conn) {
         Refresh(DCL_WWW_ROOT . 'logout.php?cd=3');
     }
     if (!$g_oSession->IsValidSession()) {
         Refresh(DCL_WWW_ROOT . 'logout.php?cd=2');
     }
     LoadStringResource('cmmn');
 } else {
     $obj = GetAuthenticator();
     $aAuthInfo = array();
     if ($obj->IsValidLogin($aAuthInfo)) {
         $oConfig = CreateObject('dcl.dbConfig');
         $dcl_info = array();
         $oConfig->Load();
         $g_oSession = CreateObject('dcl.dbSession');
         if (!$g_oSession->conn) {
             Refresh('logout.php?cd=3');
         }
         $g_oSession->personnel_id = $aAuthInfo['id'];
         $g_oSession->Add();
         $oPreferences = CreateObject('dcl.dbPreferences');
         $oPreferences->Load($aAuthInfo['id']);
开发者ID:ljvblfz,项目名称:mysoftwarebrasil,代码行数:31,代码来源:login.php

示例12: LoadStringResource

 * as published by the Free Software Foundation; either version 2
 * of the License, or (at your option) any later version.
 *
 * Double Choco Latte is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 *
 * Select License Info from the Help menu to view the terms and conditions of this license.
 */
LoadStringResource('bm');
LoadStringResource('prod');
class htmlBuildManagerReleaseForm
{
    var $oSmarty;
    var $eState;
    function htmlBuildManagerReleaseForm()
    {
        $this->oSmarty =& CreateSmarty();
        $this->eState = DCL_FORM_ADD;
    }
    function Show()
    {
        global $dcl_info, $g_oSec;
        commonHeader();
        if (!$g_oSec->HasPerm(DCL_ENTITY_BUILDMANAGER, DCL_PERM_MODIFY)) {
            return PrintPermissionDenied();
开发者ID:ljvblfz,项目名称:mysoftwarebrasil,代码行数:31,代码来源:class.htmlBuildManagerReleaseForm.inc.php

示例13: LoadStringResource

 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version 2
 * of the License, or (at your option) any later version.
 *
 * Double Choco Latte is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 *
 * Select License Info from the Help menu to view the terms and conditions of this license.
 */
LoadStringResource('actn');
class htmlActions
{
    function GetCombo($default = 0, $cbName = 'action', $longShort = 'name', $size = 0, $activeOnly = true, $setid = 0)
    {
        $query = "SELECT a.id,a.{$longShort} FROM actions a ";
        if ($setid > 0) {
            $query .= ",attributesetsmap b WHERE a.id=b.keyid AND b.typeid=1 AND b.setid={$setid} ";
            if ($activeOnly) {
                $query .= ' AND a.active=\'Y\' ';
            }
        } else {
            if ($activeOnly) {
                $query .= 'WHERE a.active=\'Y\' ';
            }
        }
开发者ID:ljvblfz,项目名称:mysoftwarebrasil,代码行数:31,代码来源:class.htmlActions.inc.php

示例14: LoadStringResource

 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version 2
 * of the License, or (at your option) any later version.
 *
 * Double Choco Latte is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 *
 * Select License Info from the Help menu to view the terms and conditions of this license.
 */
LoadStringResource('ver');
class htmlVersion
{
    function displayversioninfo()
    {
        global $dcl_info;
        if (!empty($_SERVER)) {
            extract($_SERVER);
        }
        commonHeader();
        $Template = CreateTemplate(array('hForm' => 'htmlVersion.tpl'));
        $Template->set_var('TXT_TITLE', STR_VER_TITLE);
        $Template->set_var('TXT_YOURVER', STR_VER_YOURVER);
        $Template->set_var('TXT_DCL', STR_VER_DCL);
        $Template->set_var('TXT_SERVEROS', STR_VER_SERVEROS);
        $Template->set_var('TXT_SERVERNAME', STR_VER_SERVERNAME);
开发者ID:ljvblfz,项目名称:mysoftwarebrasil,代码行数:31,代码来源:class.htmlVersion.inc.php

示例15: LoadStringResource

 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version 2
 * of the License, or (at your option) any later version.
 *
 * Double Choco Latte is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 *
 * Select License Info from the Help menu to view the terms and conditions of this license.
 */
LoadStringResource('prio');
class htmlPriorities
{
    function GetCombo($default = 0, $cbName = 'priority', $longShort = 'name', $size = 0, $activeOnly = true, $setid = 0)
    {
        $query = "SELECT a.id,a.{$longShort} FROM priorities a";
        if ($setid > 0) {
            $query .= ",attributesetsmap b WHERE a.id=b.keyid AND b.typeid=2 AND b.setid={$setid}";
            if ($activeOnly) {
                $query .= ' AND a.active=\'Y\'';
            }
            $query .= ' ORDER BY b.weight';
        } else {
            if ($activeOnly) {
                $query .= ' WHERE a.active=\'Y\'';
            }
开发者ID:ljvblfz,项目名称:mysoftwarebrasil,代码行数:31,代码来源:class.htmlPriorities.inc.php


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