• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP mswSpecialChars函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

示例1: display

 public function display()
 {
     global $page;
     $html = '';
     // How many pages?
     $this->num_pages = ceil($this->total / PER_PAGE);
     // If pages less than or equal to 1, display nothing..
     if ($this->num_pages <= 1) {
         return $html;
     }
     // Build pages..
     $current_page = $page;
     $begin = $current_page - $this->split;
     $end = $current_page + $this->split;
     if ($begin < 1) {
         $begin = 1;
         $end = $this->split * 2;
     }
     if ($end > $this->num_pages) {
         $end = $this->num_pages;
         $begin = $end - $this->split * 2;
         $begin++;
         if ($begin < 1) {
             $begin = 1;
         }
     }
     if ($current_page != 1) {
         $html .= '<li><a title="' . mswSpecialChars($this->text[0]) . '" href="' . $this->query . '1" rel="nofollow">' . $this->text[0] . '</a></li>' . mswDefineNewline();
         $html .= '<li><a title="' . mswSpecialChars($this->text[1]) . '" href="' . $this->query . ($current_page - 1) . '" rel="nofollow">' . $this->text[1] . '</a></li>' . mswDefineNewline();
     } else {
         $html .= '<li class="disabled"><a href="#" rel="nofollow">' . $this->text[0] . '</a></li>' . mswDefineNewline();
         $html .= '<li class="disabled"><a href="#" rel="nofollow">' . $this->text[1] . '</a></li>' . mswDefineNewline();
     }
     for ($i = $begin; $i <= $end; $i++) {
         if ($i != $current_page) {
             $html .= '<li><a title="' . $i . '" href="' . $this->query . $i . '" rel="nofollow">' . $i . '</a></li>' . mswDefineNewline();
         } else {
             $html .= '<li class="active"><a href="#" rel="nofollow">' . $i . '</a></li>' . mswDefineNewline();
         }
     }
     if ($current_page != $this->num_pages) {
         $html .= '<li><a title="' . mswSpecialChars($this->text[2]) . '" href="' . $this->query . ($current_page + 1) . '" rel="nofollow">' . $this->text[2] . '</a></li>' . mswDefineNewline();
         $html .= '<li><a title="' . mswSpecialChars($this->text[3]) . '" href="' . $this->query . $this->num_pages . '" rel="nofollow">' . $this->text[3] . '</a></li>' . mswDefineNewline();
     } else {
         $html .= '<li class="disabled"><a href="#" rel="nofollow">' . $this->text[2] . '</a></li>' . mswDefineNewline();
         $html .= '<li class="disabled"><a href="#" rel="nofollow">' . $this->text[3] . '</a></li>' . mswDefineNewline();
     }
     return '<ul>' . mswDefineNewline() . trim($html) . mswDefineNewline() . '</ul>';
 }
开发者ID:sushilfl88,项目名称:test-abcd,代码行数:49,代码来源:class.page.php


示例2: array

             if ($_POST['newpass'] != $_POST['newpass2']) {
                 $json = array('status' => 'err', 'field' => 'newpass', 'tab' => 'three', 'msg' => $msg_public_profile12);
             } else {
                 if (strlen($_POST['newpass']) < $SETTINGS->minPassValue) {
                     $json = array('status' => 'err', 'field' => 'newpass', 'tab' => 'three', 'msg' => str_replace('{min}', $SETTINGS->minPassValue, $msg_public_profile13));
                 } else {
                     $newPassConfirmed = md5(SECRET_KEY . $_POST['newpass']);
                 }
             }
         }
     }
 }
 // If ok, update..
 if (!isset($json['status'])) {
     // Update profile..
     $rows = $MSACC->ms_update(array('id' => $LI_ACC->id, 'name' => isset($_POST['name']) && $_POST['name'] ? substr($_POST['name'], 0, 200) : mswSpecialChars($LI_ACC->name), 'email' => isset($newEmailConfirmed) ? $newEmailConfirmed : $LI_ACC->email, 'pass' => isset($newPassConfirmed) ? $newPassConfirmed : $LI_ACC->userPass, 'timezone' => isset($_POST['timezone']) && $_POST['timezone'] != '0' ? $_POST['timezone'] : $LI_ACC->timezone, 'language' => isset($_POST['language']) ? $_POST['language'] : $LI_ACC->language));
     // Send email notification if something got updated..
     if ($rows > 0 && $SETTINGS->accProfNotify == 'yes') {
         // Send mail..
         $MSMAIL->addTag('{NAME}', $LI_ACC->name);
         // Check template..
         if ($LI_ACC->language && file_exists(PATH . 'content/language/' . $LI_ACC->language . '/mail-templates/profile-updated.txt')) {
             $mailT = PATH . 'content/language/' . $LI_ACC->language . '/mail-templates/profile-updated.txt';
             $pLang = $LI_ACC->language;
         } else {
             $mailT = PATH . 'content/language/' . $SETTINGS->language . '/mail-templates/profile-updated.txt';
         }
         $MSMAIL->sendMSMail(array('from_email' => $SETTINGS->email, 'from_name' => $SETTINGS->website, 'to_email' => $LI_ACC->email, 'to_name' => $LI_ACC->name, 'subject' => str_replace(array('{website}'), array($SETTINGS->website), $emailSubjects['profile-update']), 'replyto' => array('name' => $SETTINGS->website, 'email' => $SETTINGS->replyto ? $SETTINGS->replyto : $SETTINGS->email), 'template' => $mailT, 'language' => isset($pLang) ? $pLang : $SETTINGS->language));
     }
     // We are done..
     $json = array('status' => 'ok', 'field' => 'msg', 'msg' => mswActionMessage($msg_public_profile2));
开发者ID:sushilfl88,项目名称:test-abcd,代码行数:31,代码来源:ajax-handler.php


示例3: mswCleanData

    ?>
"><img src="http://localhost/maian_support/helpdesk/admin/templates/images/ost-logo.png" width="232" height="66"><span class="first">qweqwe<?php 
    echo mswCleanData($msg_script . " - " . $msg_adheader);
    ?>
&nbsp;&nbsp;&nbsp;(v<?php 
    echo $SETTINGS->softwareVersion;
    ?>
 - Beta <?php 
    echo mswGetBetaVersion();
    ?>
)</span></a>
				<?php 
} else {
    ?>
				<a class="brand" href="index.php" title="<?php 
    echo mswSpecialChars($msg_script . " - " . $msg_adheader);
    ?>
"><img src="http://localhost/maian_support/helpdesk/admin/templates/images/ost-logo.png" width="232" height="66"><span class="first"><?php 
    echo mswCleanData($msg_script . " - " . $msg_adheader);
    ?>
</span></a>
				<?php 
}
?>
        </div>
    </div>

    <div class="sidebar-nav">

        <?php 
// Navigation menu..
开发者ID:sushilfl88,项目名称:test-abcd,代码行数:31,代码来源:header.php


示例4: mswSpecialChars

"><i class="icon-pencil"></i></a>&nbsp;&nbsp;&nbsp;<a href="?p=view-ticket&amp;id=<?php 
            echo $TICKETS->ticketID;
            ?>
&amp;editNotes=yes" title="<?php 
            echo mswSpecialChars($msg_viewticket72);
            ?>
" class="nyroModal"><i class="icon-file-text"></i></a></span> <i class="icon-file-alt"></i> <?php 
            echo $MSYS->department($TICKETS->department, $msg_script30);
            ?>
</span>
		  <?php 
        }
        ?>
		  </td>
		  <td><?php 
        echo mswSpecialChars($TICKETS->ticketName);
        ?>
		  <span class="ticketDate"><?php 
        echo $MSDT->mswDateTimeDisplay($TICKETS->ticketStamp, $SETTINGS->dateformat);
        ?>
 @ <?php 
        echo $MSDT->mswDateTimeDisplay($TICKETS->ticketStamp, $SETTINGS->timeformat);
        ?>
</span>
		  </td>
		  <td>
		  <?php 
        if ($last[0] != '0') {
            echo mswCleanData($last[0]);
            ?>
		  <span class="ticketDate"><?php 
开发者ID:sushilfl88,项目名称:test-abcd,代码行数:31,代码来源:history.php


示例5: mysql_query

		 
		 <div id="cb">
		 <?php 
// If global log in no filter necessary..
$q_dept = mysql_query("SELECT * FROM `" . DB_PREFIX . "departments` " . mswSQLDepartmentFilter($mswDeptFilterAccess, 'WHERE') . " ORDER BY `name`") or die(mswMysqlErrMsg(mysql_errno(), mysql_error(), __LINE__, __FILE__));
while ($DEPT = mysql_fetch_object($q_dept)) {
    ?>
         <label class="checkbox">
		  <input type="checkbox" name="dept[]"<?php 
    echo isset($deptArr) && in_array($DEPT->id, $deptArr) ? ' checked="checked" ' : ' ';
    ?>
value="<?php 
    echo $DEPT->id;
    ?>
"> <?php 
    echo mswSpecialChars($DEPT->name);
    ?>
         </label>
		 <input type="hidden" name="deptall[]" value="<?php 
    echo $DEPT->id;
    ?>
">
		 <?php 
}
?>
         </div>
		 
		</div>
	   </div>
	  </div>
	  <div class="btn-toolbar" style="margin-top:0;padding-top:0">
开发者ID:sushilfl88,项目名称:test-abcd,代码行数:30,代码来源:responses.php


示例6: htmlWrap

 public function htmlWrap($tmp)
 {
     global $MSPARSER;
     $msg = $this->convertTags($this->template($tmp['template']));
     $parse = explode('<-{separater}->', $msg);
     // Check for 3 slots, ie: 2 separators..
     if (count($parse) == 3) {
         $head = trim($parse[0]);
         $cont = trim($parse[1]);
         $foot = trim($parse[2]);
     } else {
         $head = mswCleanData($this->config['website']);
         $cont = str_replace('<-{separater}->', '', trim($msg));
         $foot = mswCleanData($this->config['scriptpath']);
     }
     // Auto parse hyperlinks..
     $head = $this->convertChar($MSPARSER->mswAutoLinkParser($head));
     $cont = $this->convertChar($MSPARSER->mswAutoLinkParser($cont));
     $foot = $this->convertChar($MSPARSER->mswAutoLinkParser($foot));
     // Auto parse line breaks..
     $head = mswNL2BR($head);
     $cont = mswNL2BR($cont);
     $foot = mswNL2BR($foot);
     // Parse html message with wrapper..
     $find = array('{CHARSET}', '{TITLE}', '{HEADER}', '{CONTENT}', '{FOOTER}');
     $repl = array($this->charset, mswSpecialChars($this->config['website']), $head, $cont, $foot . $this->appendFooterToEmails());
     // Language override..
     if (isset($tmp['language'])) {
         $this->config['language'] = $tmp['language'];
     }
     $html = str_replace($find, $repl, file_get_contents(SYS_ROOT_PATH . 'content/language/' . $this->config['language'] . '/mail-templates/html-wrapper.html'));
     return $html;
 }
开发者ID:sushilfl88,项目名称:test-abcd,代码行数:33,代码来源:class.send.php


示例7: Savant3

  Script: Maian Support
  Written by: David Ian Bennett
  E-Mail: [email protected]
  Software Website: http://www.maiansupport.com
  Script Portal: http://www.maianscriptworld.co.uk

  ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

  This File: header.php
  Description: Header Parsing File

  ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/
if (!defined('PARENT') || !defined('MS_PERMISSIONS')) {
    $HEADERS->err404();
}
$tpl = new Savant3();
$tpl->assign('CHARSET', $msg_charset);
$tpl->assign('LANG', $html_lang);
$tpl->assign('DIR', $lang_dir);
$tpl->assign('TITLE', ($title ? mswSpecialChars($title) . ': ' : '') . str_replace('{website}', mswSpecialChars($SETTINGS->website), $msg_header) . (LICENCE_VER != 'unlocked' ? ' (' . $msg_script18 . ' ' . $msg_script . ')' : '') . (LICENCE_VER != 'unlocked' ? ' - Free Version' : '') . (mswCheckBetaVersion() == 'yes' ? ' - BETA VERSION' : ''));
$tpl->assign('TOP_BAR_TITLE', str_replace('{website}', mswSpecialChars($SETTINGS->website), $msg_header));
$tpl->assign('SCRIPTPATH', $SETTINGS->scriptpath);
$tpl->assign('LOGGED_IN', MS_PERMISSIONS != 'guest' ? 'yes' : 'no');
$tpl->assign('TXT', array($msg_header8, $msg_main2, $msg_header3, $msg_header11, $msg_header12, $msg_header2, MS_PERMISSIONS != 'guest' && isset($LI_ACC->name) ? str_replace('{name}', mswSpecialChars($LI_ACC->name), $msg_header6) : '', $msg_header13, $msg_header14, $msg_header15, $msg_header16, $msg_header4));
$tpl->assign('JS_CSS_BLOCK', $MSYS->jsCSSBlockLoader($ms_js_css_loader, $SETTINGS->scriptpath));
$tpl->assign('FAQ_LINKS', $SETTINGS->kbase == 'yes' ? $FAQ->menu() : '');
// Global vars..
include PATH . 'control/lib/global.php';
// Load template..
$tpl->display('content/' . MS_TEMPLATE_SET . '/header.tpl.php');
开发者ID:sushilfl88,项目名称:test-abcd,代码行数:30,代码来源:header.php


示例8: in_array

    ?>
 >
         <input type="checkbox" name="assigned[]" <?php 
    echo $checked;
    ?>
 <?php 
    echo $class;
    ?>
 value="<?php 
    echo $USERS->id;
    ?>
"<?php 
    echo in_array($USERS->id, $boomUsers) ? ' checked="checked"' : '';
    ?>
> <?php 
    echo mswCleanData(mswSpecialChars($USERS->name) . ' <span class="email">(' . $USERS->email . ')</span> ' . (in_array('users', $userAccess) || $MSTEAM->id == '1' ? '<a href="?p=team&amp;edit=' . $USERS->id . '" title="' . mswSpecialChars($msg_user14) . '"><i class="icon-pencil"></i></a>' : ''));
    ?>
        </label>
	    <?php 
}
?>
	    </div>
	   </div>
	   <div class="btn-toolbar" style="margin-top:0;padding-top:0;text-align:center">
        <button class="btn btn-primary" type="button" onclick="ms_updateAssignedUsers('<?php 
echo $_GET['id'];
?>
')"><i class="icon-ok"></i> <?php 
echo $msg_viewticket121;
?>
</button>
开发者ID:sushilfl88,项目名称:test-abcd,代码行数:31,代码来源:users.php


示例9: isset

?>
<!DOCTYPE html>
<html lang="<?php 
echo isset($html_lang) ? $html_lang : 'en';
?>
" dir="<?php 
echo $lang_dir;
?>
">
  <head>
    <meta charset="<?php 
echo $msg_charset;
?>
">
    <title><?php 
echo ($title ? mswSpecialChars($title) . ': ' : '') . $msg_script . ' - ' . mswCleanData($msg_adheader) . (LICENCE_VER != 'unlocked' ? ' (Free Version)' : '') . (mswCheckBetaVersion() == 'yes' ? ' - BETA VERSION' : '');
?>
</title>
    <meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">

	<!-- Global CSS -->
    <link rel="stylesheet" href="templates/css/bootstrap.css" type="text/css">
	<link rel="stylesheet" href="templates/css/bootstrap-responsive.css" type="text/css">
    <link rel="stylesheet" href="templates/css/theme.css" type="text/css">
    <link rel="stylesheet" href="templates/css/font-awesome.css">
	<script src="templates/js/jquery.js" type="text/javascript"></script>
	<link rel="stylesheet" href="templates/css/ms.css" type="text/css">
	<!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
    <!--[if lt IE 9]>
      <script src="templates/js/html5.js"></script>
开发者ID:sushilfl88,项目名称:test-abcd,代码行数:31,代码来源:bbcode-help.php


示例10: strlen

            ?>
          <div class="row-fluid homeTicketWrapper<?php 
            echo ++$lp == $T4Rows ? ' nobottomborder' : '';
            ?>
">
           <a href="?p=view-dispute&amp;id=<?php 
            echo $TICKETS->ticketID;
            ?>
">
		   <?php 
            echo $cutOff > 0 && strlen($TICKETS->subject) > $cutOff ? substr(mswSpecialChars($TICKETS->subject), 0, $cutOff - 2) . '..' : mswSpecialChars($TICKETS->subject);
            ?>
		   </a>
		   <span class="bar">
			<?php 
            echo str_replace(array('{name}', '{priority}', '{date}', '{ticket}', '{count}'), array(mswSpecialChars($TICKETS->ticketName), mswCleanData($TICKETS->levelName), $MSDT->mswDateTimeDisplay($TICKETS->ticketStamp, $SETTINGS->dateformat), mswTicketNumber($TICKETS->ticketID), $TICKETS->disputeCount + 1), $msg_home45);
            ?>
		   </span>
		  </div>
          <?php 
        }
    } else {
        ?>
         <p class="nothing_to_see smalltxt"><?php 
        echo $msg_home41;
        ?>
</p>
         <?php 
    }
    ?>
        </div>
开发者ID:sushilfl88,项目名称:test-abcd,代码行数:31,代码来源:admin.php


示例11: mswSpecialChars

		 <div>
          <span class="attachBox"><input type="file" class="input-small" name="attachment[]"></span>
		 </div>
         <?php 
        if (LICENCE_VER == 'unlocked') {
            ?>
         <p class="attachlinks">
          <button class="btn" type="button" title="<?php 
            echo mswSpecialChars($msg_newticket37);
            ?>
" onclick="ms_attachBox('add','<?php 
            echo ADMIN_ATTACH_BOX_OVERRIDE;
            ?>
')">+</button>
          <button class="btn" type="button" title="<?php 
            echo mswSpecialChars($msg_newticket38);
            ?>
" onclick="ms_attachBox('remove')">-</button>
         </p>
         <?php 
        }
        ?>
		
		</div>
	   </div>
	   <?php 
    }
    if ($countOfOtherUsers > 0) {
        ?>
	   <div class="tab-pane fade" id="five">
	    <div class="well">
开发者ID:sushilfl88,项目名称:test-abcd,代码行数:31,代码来源:tickets-add.php


示例12: echo

  <?php 
if (isset($_GET['msg'])) {
    ?>
  <li class="active"><a href="?p=mailbox&amp;msg=<?php 
    echo (int) $_GET['msg'];
    ?>
" class="mailBoxMsg"><i class="icon-search"></i> <?php 
    echo $msg_mailbox7;
    ?>
</a></li>
  <?php 
}
if ($keys) {
    ?>
  <li class="active"><a href="?p=mailbox&amp;keys=<?php 
    echo urlencode(mswSpecialChars($keys));
    ?>
" class="mailBoxMsg"><i class="icon-search"></i> <?php 
    echo $msg_mailbox32;
    ?>
</a></li>
  <?php 
}
?>
  <li<?php 
echo !isset($_GET['f']) && !isset($_GET['msg']) && !isset($_GET['new']) && $keys == '' ? ' class="active"' : '';
?>
><a href="?p=mailbox"><i class="icon-inbox"></i> <?php 
echo $msg_mailbox;
?>
</a></li>
开发者ID:sushilfl88,项目名称:test-abcd,代码行数:31,代码来源:mailbox-nav.php


示例13: str_replace

             $atID = $MSTICKET->addAttachment(array('temp' => $a_temp, 'name' => $a_name, 'size' => $a_size, 'mime' => $a_mime, 'tID' => $T->id, 'rID' => $replyID, 'dept' => $T->department, 'incr' => $i));
             $attString[] = $SETTINGS->scriptpath . '/?attachment=' . $atID;
         }
     }
 }
 // History log..
 $MSTICKET->historyLog($T->id, str_replace(array('{visitor}', '{id}'), array(mswSpecialChars($LI_ACC->name), $replyID), $msg_ticket_history['vis-reply-add']));
 // Dispute ticket or standard operations..
 switch ($T->isDisputed) {
     case 'no':
         // Was ticket closed..
         if (isset($_POST['close'])) {
             $closeRrows = $MSTICKET->openclose($T->id, 'close');
             // History if affected rows..
             if ($closeRrows > 0) {
                 $MSTICKET->historyLog($T->id, str_replace('{user}', mswSpecialChars($LI_ACC->name), $msg_ticket_history['vis-ticket-close']));
                 // Should we switch emails off?
                 if ($SETTINGS->closenotify == 'yes') {
                     define('EMAILS_OFF', 1);
                 }
             }
         }
         break;
     default:
         break;
 }
 // Mail tags..
 if (!defined('EMAILS_OFF')) {
     $MSMAIL->addTag('{ACC_NAME}', $LI_ACC->name);
     $MSMAIL->addTag('{TICKET}', mswTicketNumber($T->id));
     $MSMAIL->addTag('{SUBJECT}', $T->subject);
开发者ID:sushilfl88,项目名称:test-abcd,代码行数:31,代码来源:account-ticket-reply.php


示例14: mswSpecialChars

</label>
              <input type="password" id="pass" name="pass" class="span12" value="" onkeyup="jQuery('#e_pass').hide('slow')" onkeypress="if(getKeyCode(event)==13){sysLoginEvent()}">
              <?php 
// Show password error if applicable..
if (isset($P_ERROR)) {
    ?>
			  <div class="alert alert-error" style="margin-top:0" id="e_pass">
               <a class="close" data-dismiss="alert">×</a> <?php 
    echo $msg_login4;
    ?>
			  </div>
              <?php 
}
?>
			  <a href="#" onclick="sysLoginEvent();return false" class="btn btn-primary pull-right" title="<?php 
echo mswSpecialChars($msg_login5);
?>
"><?php 
echo mswCleanData($msg_login5);
?>
</a>
			  <?php 
// Is cookie set?
if (COOKIE_NAME) {
    ?>
              <label class="remember-me"><input type="checkbox" name="cookie" value="1"> <?php 
    echo $msg_login3;
    ?>
</label>
			  <?php 
}
开发者ID:sushilfl88,项目名称:test-abcd,代码行数:31,代码来源:login.php


示例15: mswSpecialChars

  <button class="btn" type="button" title="<?php 
echo mswSpecialChars($this->TXT[19][2]);
?>
" onclick="ms_addTags('-','url','<?php 
echo mswSpecialChars(str_replace("'", "\\'", $this->TXT[19][6]));
?>
','comments')"><i class="icon-link"></i></button>
  <button class="btn" type="button" title="<?php 
echo mswSpecialChars($this->TXT[19][1]);
?>
" onclick="ms_addTags('-','email','<?php 
echo mswSpecialChars(str_replace("'", "\\'", $this->TXT[19][5]));
?>
','comments')"><i class="icon-envelope-alt"></i></button>
  <button class="btn" type="button" title="<?php 
echo mswSpecialChars($this->TXT[19][0]);
?>
" onclick="ms_addTags('-','img','<?php 
echo mswSpecialChars(str_replace("'", "\\'", $this->TXT[19][4]));
?>
','comments')"><i class="icon-picture"></i></button>
  <button class="btn" type="button" title="YouTube" onclick="ms_addTags('-','youtube','<?php 
echo mswSpecialChars(str_replace("'", "\\'", $this->TXT[19][7]));
?>
','comments')"><i class="icon-youtube"></i></button>
  <button class="btn" type="button" title="Vimeo" onclick="ms_addTags('-','vimeo','<?php 
echo mswSpecialChars(str_replace("'", "\\'", $this->TXT[19][8]));
?>
','comments')"><i class="icon-play"></i></button>
  <button class="btn" type="button" title="?" onclick="window.open('index.php?bbcode=show','_blank')"><i class="icon-question"></i></button>
</div>
开发者ID:sushilfl88,项目名称:test-abcd,代码行数:31,代码来源:bb-code.tpl.php


示例16: header

  E-Mail: [email protected]
  Software Website: http://www.maiansupport.com
  Script Portal: http://www.maianscriptworld.co.uk

  ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  
  This File: account-dashboard.php
  Description: System File

  ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/
if (!defined('PARENT') || !defined('MS_PERMISSIONS')) {
    $HEADERS->err403();
}
// Check log in..
if (MS_PERMISSIONS == 'guest' || !isset($LI_ACC->id)) {
    header("Location:index.php?p=login");
    exit;
}
$title = $msg_header3;
$tz = $LI_ACC->timezone ? $LI_ACC->timezone : $SETTINGS->timezone;
include PATH . 'control/header.php';
// Show..
$tpl = new Savant3();
$tpl->assign('TXT', array($msg_header13, $MSDT->mswDateTimeDisplay(strtotime(date('Y-m-d', $MSDT->mswUTC())), $SETTINGS->dateformat, $tz), $msg_public_dashboard1, $msg_public_dashboard2, $msg_public_dashboard3, $msg_public_dashboard4, $msg_public_dashboard5, str_replace('{name}', mswSpecialChars($LI_ACC->name), $msg_public_dashboard11), $msg_public_dashboard12));
$tpl->assign('TICKETS', $MSTICKET->ticketList(MS_PERMISSIONS, array(0, 99999), false, 'AND `ticketStatus` = \'open\''));
$tpl->assign('DISPUTES', $MSTICKET->disputeList(MS_PERMISSIONS, $LI_ACC->id, array(0, 99999), false, 'AND `ticketStatus` = \'open\''));
// Global vars..
include PATH . 'control/lib/global.php';
// Load template..
$tpl->display('content/' . MS_TEMPLATE_SET . '/account-dashboard.tpl.php');
include PATH . 'control/footer.php';
开发者ID:sushilfl88,项目名称:test-abcd,代码行数:31,代码来源:account-dashboard.php


示例17: isset

?>
	  </div>
	  <div class="btn-toolbar" style="margin-top:0;padding-top:0">
	   <input type="hidden" name="<?php 
echo isset($EDIT->id) ? 'update' : 'process';
?>
" value="1">
	   <?php 
if (isset($EDIT->id)) {
    ?>
	   <input type="hidden" name="old_pass" value="<?php 
    echo mswSpecialChars($EDIT->userPass);
    ?>
">
	   <input type="hidden" name="old_email" value="<?php 
    echo mswSpecialChars($EDIT->email);
    ?>
">
	   <?php 
}
?>
       <button class="btn btn-primary" type="submit"><i<?php 
echo isset($EDIT->id) ? ' class="icon-ok"' : ' class="icon-plus"';
?>
></i> <?php 
echo isset($EDIT->id) ? $msg_accounts6 : $msg_accounts4;
?>
</button>
       <?php 
if (isset($EDIT->id)) {
    ?>
开发者ID:sushilfl88,项目名称:test-abcd,代码行数:31,代码来源:accounts.php


示例18: mswSpecialChars

<?php

if (!defined('PARENT')) {
    exit;
}
// Pre-populate search box if query exists.
$searchTxt = '';
// Ticket search..
if (isset($_GET['qt'])) {
    $searchTxt = mswSpecialChars($_GET['qt']);
}
if (isset($_GET['qd'])) {
    $searchTxt = mswSpecialChars($_GET['qd']);
}
$pageParam = $this->IS_DISPUTED == 'yes' ? 'disputes' : 'history';
?>
<div class="content">
        
  <div class="header">
    
    <div class="btn-group">
     <button class="btn"><?php 
echo $this->IS_DISPUTED == 'yes' ? $this->TXT[10] : $this->TXT[9];
?>
</button>
     <button class="btn dropdown-toggle" data-toggle="dropdown">
     <span class="caret"></span>
     </button>
     <ul class="dropdown-menu topbar-dropdowns">
	  <?php 
foreach ($this->DD_ORDER as $fk1 => $fv1) {
开发者ID:sushilfl88,项目名称:test-abcd,代码行数:31,代码来源:account-history.tpl.php


示例19: strtoupper

	  <div class="block" style="margin-top:40px">
	   <p class="block-heading" id="hisblockhead">(<span id="hiscount"><?php 
    echo @number_format($historyRows);
    ?>
</span>) <?php 
    echo strtoupper($msg_viewticket110) . ' (#' . mswTicketNumber($_GET['id']);
    ?>
)<?php 
    echo $historyRows > 0 ? (USER_DEL_PRIV == 'yes' ? ' <a class="toggleFields pull-right" href="#" onclick="confirmMessageExecute(\'' . mswSpecialChars($msg_script_action) . '\',\'history\',\'0##' . $_GET['id'] . '\');return false"><i class="icon-remove"></i> ' . $msg_viewticket118 . '</a> ' : '') . '<a class="toggleFields pull-right" href="index.php?p=view-ticket&amp;exportHistory=' . $_GET['id'] . '"><i class="icon-save"></i> ' . $msg_viewticket112 . '</a>' : '';
    ?>
</p>
	   <div class="block-body" style="max-height:300px;overflow:auto" id="historyArea">
	     <?php 
    if ($historyRows > 0) {
        while ($HIS = mysql_fetch_object($qTH)) {
            echo '<span class="historyEntry" id="history_entry_' . $HIS->id . '"><i class="icon-caret-right"></i> <span class="highlighter">' . $MSDT->mswDateTimeDisplay($HIS->ts, $SETTINGS->dateformat) . ' - ' . $MSDT->mswDateTimeDisplay($HIS->ts, $SETTINGS->timeformat) . '</span> - ' . mswCleanData($HIS->action) . (USER_DEL_PRIV == 'yes' ? ' <i class="icon-remove" style="cursor:pointer" onclick="mswRemoveHistory(\'' . $HIS->id . '\',\'0\')" title="' . mswSpecialChars($msg_public_history12) . '"></i>' : '') . '</span>';
        }
    } else {
        ?>
		 <p class="nodata"><?php 
        echo $msg_viewticket111;
        ?>
</p>
		 <?php 
    }
    ?>
	   </div>
	  </div>
	  <?php 
}
// Footer links..
开发者ID:sushilfl88,项目名称:test-abcd,代码行数:31,代码来源:ticket.php


示例20: defined

<?php

if (!defined('PARENT')) {
    exit;
}
?>
	<form method="get" action="index.php" style="margin:0;padding:0">
	<p style="margin:0;padding:0"><input type="hidden" name="p" value="faq-search"></p>
	<div class="btn-toolbar" id="sbox" style="margin-top:<?php 
echo defined('SEARCH_MARGIN') ? SEARCH_MARGIN : '0';
?>
;display:none">
     <div class="input-append">
      <input type="text" class="input-large" name="q" value="<?php 
echo isset($_GET['q']) ? urldecode(mswSpecialChars($_GET['q'])) : '';
?>
">
      <button class="btn btn-info" type="submit"><i class="icon-search"></i></button>
     </div>
    </div>
	</form>
开发者ID:sushilfl88,项目名称:test-abcd,代码行数:21,代码来源:faq-search-box.tpl.php



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP mt函数代码示例发布时间:2022-05-15
下一篇:
PHP mswSafeImportString函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap