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

PHP FSSRoute类代码示例

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

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



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

示例1: display

 function display($tpl = NULL)
 {
     $action = FSS_Input::getCmd('action');
     if ($action == "cancel") {
         $mainframe = JFactory::getApplication();
         $link = FSSRoute::_('index.php?option=com_fss&view=admin_support', false);
         $mainframe->redirect($link);
         return;
     }
     if ($action == "save" || $action == "apply") {
         $all = array('per_page', 'group_products', 'group_departments', 'group_cats', 'group_group', 'group_pri', 'return_on_reply', 'return_on_close', 'reverse_order', 'reports_separator');
         $values = array();
         $values = SupportUsers::getAllSettings();
         foreach ($all as $setting) {
             $new = FSS_Input::getString($setting, 0);
             $values->{$setting} = $new;
         }
         SupportUsers::updateUserSettings($values);
         if ($action == "save") {
             $link = FSSRoute::_('index.php?option=com_fss&view=admin_support', false);
         } else {
             $link = FSSRoute::_('index.php?option=com_fss&view=admin_support&layout=settings', false);
         }
         $mainframe = JFactory::getApplication();
         $mainframe->redirect($link, JText::_('SETTINGS_SAVED'));
         return;
     }
     $this->_display();
 }
开发者ID:vstorm83,项目名称:propertease,代码行数:29,代码来源:layout.settings.php


示例2: navigateFail

    function navigateFail()
    {
        $session = JFactory::getSession();
        $last_url = $session->get("last_admin_list");
        $posted = $session->get("last_admin_post");
        if ($last_url == "") {
            $last_url = FSSRoute::_("index.php?option=com_fss&view=admin_support");
            $posted = array();
        }
        ?>
<form action='<?php 
        echo $last_url;
        ?>
' method='post' name='frm'>
	<?php 
        foreach ($posted as $a => $b) {
            echo "<input type='hidden' name='" . htmlentities($a, ENT_QUOTES, "utf-8") . "' value='" . htmlentities($b, ENT_QUOTES, "utf-8") . "'>";
        }
        ?>
</form>
<script language="JavaScript">
	document.frm.submit();
</script>
<?php 
        exit;
    }
开发者ID:vstorm83,项目名称:propertease,代码行数:26,代码来源:task.navigate.php


示例3: display

 function display($tpl = null)
 {
     JHTML::_('behavior.modal');
     $document = JFactory::getDocument();
     $document->addScriptDeclaration("\nvar fss_settings_url = '" . JRoute::_('index.php?option=com_fss&view=settings', false) . "';\n");
     $document->addScript(JURI::root() . 'administrator/components/com_fss/assets/js/settings.js');
     $what = JRequest::getString('what', '');
     $this->tab = JRequest::getVar('tab');
     if (JRequest::getVar('task') == "cancellist") {
         $mainframe = JFactory::getApplication();
         $link = FSSRoute::_('index.php?option=com_fss&view=fsss', false);
         $mainframe->redirect($link);
         return;
     }
     $settings = FSS_Settings::GetAllViewSettings();
     // CHANGE
     $db = JFactory::getDBO();
     if ($what == "save") {
         $data = JRequest::get('POST', JREQUEST_ALLOWRAW);
         foreach ($data as $setting => $value) {
             if (array_key_exists($setting, $settings)) {
                 $settings[$setting] = $value;
             }
         }
         foreach ($settings as $setting => $value) {
             if (!array_key_exists($setting, $data)) {
                 $settings[$setting] = 0;
                 $value = 0;
             }
             $qry = "REPLACE INTO #__fss_settings_view (setting, value) VALUES ('";
             $qry .= FSSJ3Helper::getEscaped($db, $setting) . "','";
             $qry .= FSSJ3Helper::getEscaped($db, $value) . "')";
             $db->setQuery($qry);
             $db->Query();
         }
         $link = 'index.php?option=com_fss&view=settingsview#' . $this->tab;
         if (JRequest::getVar('task') == "save") {
             $link = 'index.php?option=com_fss';
         }
         $mainframe = JFactory::getApplication();
         $mainframe->redirect($link, JText::_("View_Settings_Saved"));
         exit;
     } else {
         $document = JFactory::getDocument();
         $document->addStyleSheet(JURI::root() . 'administrator/components/com_fss/assets/css/js_color_picker_v2.css');
         $document->addScript(JURI::root() . 'administrator/components/com_fss/assets/js/color_functions.js');
         $document->addScript(JURI::root() . 'administrator/components/com_fss/assets/js/js_color_picker_v2.js');
         $this->settings = $settings;
         JToolBarHelper::title(JText::_("FREESTYLE_SUPPORT_PORTAL") . ' - ' . JText::_("VIEW_SETTINGS"), 'fss_viewsettings');
         JToolBarHelper::apply();
         JToolBarHelper::save();
         JToolBarHelper::cancel('cancellist');
         FSSAdminHelper::DoSubToolbar();
         parent::display($tpl);
     }
 }
开发者ID:vstorm83,项目名称:propertease,代码行数:56,代码来源:view.html.php


示例4: display

 function display($tpl = NULL)
 {
     // view a ticket!
     $this->ticketid = FSS_Input::getInt('ticketid');
     $document = JFactory::getDocument();
     $document->addScript(JURI::root() . 'components/com_fss/assets/js/bootstrap/bootstrap-timepicker.min.js');
     $this->ticket = new SupportTicket();
     if (!$this->ticket->load($this->ticketid)) {
         if ($this->ticket->checkExist($this->ticketid)) {
             return $this->_display("noperm");
         } else {
             return JError::raiseWarning(404, JText::_('Ticket not found'));
         }
     }
     if ($this->ticket->merged > 0 && FSS_Input::getInt('no_redirect') != '1') {
         JFactory::getApplication()->redirect(FSSRoute::_('index.php?option=com_fss&view=admin_support&layout=ticket&ticketid=' . $this->ticket->merged . "&Itemid=" . FSS_Input::getInt('Itemid'), false));
     }
     $reverse = JRequest::getInt('sort', null);
     if ($reverse !== null) {
         if ($reverse) {
             // we want messages in opposite order to normal
             if (SupportUsers::getSetting("reverse_order")) {
                 $reverse = true;
             } else {
                 $reverse = false;
             }
         } else {
             // we want messages in normal order
             $reverse = null;
         }
     }
     $this->ticket->loadAll($reverse);
     $this->loadMerged();
     $pathway = JFactory::getApplication()->getPathway();
     $pathway->addItem(JText::_("SUPPORT"), FSSRoute::_('index.php?option=com_fss&view=admin_support&tickets=' . $this->ticket_view));
     $pathway->addItem(JText::_("VIEW_TICKET") . " : " . $this->ticket->reference . " - " . $this->ticket->title);
     $this->assignOnOpen();
     $this->tryLock();
     if ($this->ticket->admin_id > 0) {
         $this->adminuser = SupportUsers::getUser($this->ticket->admin_id);
     }
     $this->ticket_view = $this->ticket->ticket_status_id;
     $this->HandleRefresh();
     if (FSS_Settings::get('time_tracking') == "auto") {
         $session = JFactory::getSession();
         $session->set('ticket_' . $this->ticket->id . "_opened", time());
     }
     FSS_Helper::IncludeModal();
     FSS_Helper::AddSCEditor();
     $this->HandleRefresh();
     $this->print = FSS_Input::getCmd('print');
     if ($this->print) {
         return $this->_display("print");
     }
     $this->_display();
 }
开发者ID:vstorm83,项目名称:propertease,代码行数:56,代码来源:layout.ticket.php


示例5: ClearCronLog

 function ClearCronLog()
 {
     $db = JFactory::getDBO();
     $qry = "TRUNCATE #__fss_cron_log";
     $db->SetQuery($qry);
     $db->Query($qry);
     $mainframe = JFactory::getApplication();
     $link = FSSRoute::_('index.php?option=com_fss&view=cronlog', false);
     $mainframe->redirect($link);
 }
开发者ID:vstorm83,项目名称:propertease,代码行数:10,代码来源:view.html.php


示例6: CannedDropdown

 static function CannedDropdown($editorid, $hascontainer = true)
 {
     if ($hascontainer) {
         $html[] = '<div class="canned_list" editid="' . $editorid . '">';
     }
     $html[] = '<div class="btn-group pull-right">';
     $html[] = '<a class="btn btn-default dropdown-toggle" data-toggle="dropdown" href="#">';
     $html[] = JText::_('Insert');
     $html[] = '&nbsp;<span class="caret"></span>';
     $html[] = '</a>';
     $html[] = '<ul class="dropdown-menu">';
     $output = false;
     $group_replies = array();
     foreach (self::GetCannedReplies() as $reply) {
         if ($reply->grouping) {
             $group_replies[$reply->grouping][] = $reply;
         } else {
             $html[] = '<li><a href="#" onclick="insertCanned(' . $reply->id . ', \'' . $editorid . '\'); return false;">' . $reply->description . '</a></li>';
         }
         $output = true;
     }
     foreach ($group_replies as $key => $replies) {
         $html[] = '<li class="dropdown-submenu pull-left">';
         $html[] = '<a>' . $key . '</a>';
         $html[] = '<ul class="dropdown-menu">';
         foreach ($replies as $reply) {
             $html[] = '<li><a href="#" onclick="insertCanned(' . $reply->id . ', \'' . $editorid . '\'); return false;">' . $reply->description . '</a></li>';
         }
         $html[] = '</ul>';
         $html[] = '</li>';
         $output = true;
     }
     if ($output) {
         $html[] = '<li class="divider"></li>';
     }
     $html[] = '<li class="dropdown-submenu pull-left"><a>' . JText::_('SITE_LINK') . '</a>';
     $html[] = '<ul class="dropdown-menu">';
     $plugins = self::getInsertPlugins();
     foreach ($plugins as $plugin) {
         $html[] = '<li><a class="show_modal_iframe" href="' . FSSRoute::_("index.php?option=com_fss&view=admin_insert&tmpl=component&type=" . $plugin->name . "&editor=" . $editorid) . '" data_modal_width="800">' . JText::_($plugin->title) . '</a></li>';
     }
     $html[] = '</ul></li>';
     $html[] = '<li class="divider"></li>';
     $html[] = '<li><a class="show_modal_iframe" href="' . FSSRoute::_("index.php?option=com_fss&view=admin_support&tmpl=component&layout=canned") . '"><i class="icon-edit"></i> ' . JText::_('EDIT') . '</a></li>';
     $html[] = '</ul>';
     $html[] = '</div>';
     if ($hascontainer) {
         $html[] = '</div>';
     }
     return implode($html);
 }
开发者ID:vstorm83,项目名称:propertease,代码行数:51,代码来源:support_canned.php


示例7: display

 function display($tpl = null)
 {
     $layout = FSS_Input::getCmd('layout');
     if ($layout == "support") {
         return JFactory::getApplication()->redirect(FSSRoute::_('index.php?option=com_fss&view=admin_support', false));
     }
     if ($layout == "content") {
         return JFactory::getApplication()->redirect(FSSRoute::_('index.php?option=com_fss&view=admin_content', false));
     }
     if ($layout == "moderate") {
         return JFactory::getApplication()->redirect(FSSRoute::_('index.php?option=com_fss&view=admin_moderate', false));
     }
     if ($layout == "shortcut") {
         return JFactory::getApplication()->redirect(FSSRoute::_('index.php?option=com_fss&view=admin_shortcut', false));
     }
     $can_view = false;
     $view = array();
     if (FSS_Permission::PermAnyContent()) {
         $view[] = FSSRoute::_('index.php?option=com_fss&view=admin_content', false);
         $can_view = true;
     }
     if (FSS_Permission::AdminGroups()) {
         $view[] = FSSRoute::_('index.php?option=com_fss&view=admin_groups', false);
         $can_view = true;
     }
     if (FSS_Permission::auth("fss.reports", "com_fss.reports")) {
         $view[] = FSSRoute::_('index.php?option=com_fss&view=admin_report', false);
         $can_view = true;
     }
     if (FSS_Permission::auth("fss.handler", "com_fss.support_admin")) {
         $view[] = FSSRoute::_('index.php?option=com_fss&view=admin_support', false);
         $can_view = true;
     }
     if (FSS_Permission::CanModerate()) {
         $view[] = FSSRoute::_('index.php?option=com_fss&view=admin_moderate', false);
         $can_view = true;
     }
     if (!$can_view) {
         return FSS_Admin_Helper::NoPerm();
     }
     // if only 1 section visible, then view that section only
     if (count($view) == 1) {
         $mainframe = JFactory::getApplication();
         $link = reset($view);
         $mainframe->redirect($link);
     }
     $this->comments = new FSS_Comments(null, null);
     $this->artcounts = FSS_ContentEdit::getArticleCounts();
     parent::display();
 }
开发者ID:vstorm83,项目名称:propertease,代码行数:50,代码来源:view.html.php


示例8: delete

 function delete()
 {
     if (!$this->view->can_EditTicket()) {
         return;
     }
     // load in tickets to do
     $ticketid = FSS_Input::getInt('ticketid');
     $fileid = FSS_Input::getInt('fileid');
     $ticket = new SupportTicket();
     if ($ticket->load($ticketid)) {
         $ticket->deleteAttach($fileid);
     }
     JFactory::getApplication()->redirect(FSSRoute::_('index.php?option=com_fss&view=admin_support&layout=ticket&ticketid=' . $ticketid, false));
     exit;
 }
开发者ID:vstorm83,项目名称:propertease,代码行数:15,代码来源:task.attach.php


示例9: SaveAPI

 function SaveAPI()
 {
     $username = JRequest::getVar('username');
     $apikey = JRequest::getVar('apikey');
     $db = JFactory::getDBO();
     $qry = "REPLACE INTO #__fss_settings (setting, value) VALUES ('fsj_username','" . FSSJ3Helper::getEscaped($db, $username) . "')";
     $db->setQuery($qry);
     $db->Query();
     $qry = "REPLACE INTO #__fss_settings (setting, value) VALUES ('fsj_apikey','" . FSSJ3Helper::getEscaped($db, $apikey) . "')";
     $db->setQuery($qry);
     $db->Query();
     // update url links
     $updater = new FSSUpdater();
     $updater->SortAPIKey($username, $apikey);
     $mainframe = JFactory::getApplication();
     $link = FSSRoute::_('index.php?option=com_fss&view=backup', false);
     $mainframe->redirect($link);
 }
开发者ID:vstorm83,项目名称:propertease,代码行数:18,代码来源:view.html.php


示例10: NoPerm

 static function NoPerm()
 {
     if (array_key_exists('REQUEST_URI', $_SERVER)) {
         $url = $_SERVER['REQUEST_URI'];
         //JURI::current() . "?" . $_SERVER['QUERY_STRING'];
     } else {
         $option = FSS_Input::getCmd('option', '');
         $view = FSS_Input::getCmd('view', '');
         $layout = FSS_Input::getCmd('layout', '');
         $Itemid = FSS_Input::getInt('Itemid', 0);
         $url = FSSRoute::_("index.php?option=" . $option . "&view=" . $view . "&layout=" . $layout . "&Itemid=" . $Itemid);
     }
     $url = str_replace("&what=find", "", $url);
     $url = base64_encode($url);
     $return = $url;
     require_once JPATH_SITE . DS . 'components' . DS . 'com_fss' . DS . 'views' . DS . 'admin' . DS . 'tmpl' . DS . 'noperm.php';
     return false;
 }
开发者ID:vstorm83,项目名称:propertease,代码行数:18,代码来源:admin_helper.php


示例11: ticket_status_id

 function ticket_status_id()
 {
     // update status in ticket
     // redirect if the config is set to
     $ticketid = FSS_Input::getInt('ticketid');
     $ticket_status_id = FSS_Input::getInt('ticket_status_id');
     if ($ticketid < 1) {
         exit;
     }
     if ($ticket_status_id < 1) {
         exit;
     }
     $link = FSSRoute::_('index.php?option=com_fss&view=admin_support&layout=ticket&ticketid=' . $ticketid, false);
     // check permission for new status
     $statuss = SupportHelper::getStatuss();
     $new_status = $statuss[$ticket_status_id];
     if ($new_status->is_closed && !$this->view->can_Close()) {
         JFactory::getApplication()->redirect($link);
         exit;
     }
     $ticket = new SupportTicket();
     if ($ticket->Load($ticketid)) {
         $old_st = $ticket->getStatus();
         $ticket->updateStatus($ticket_status_id);
         $new_st = $ticket->getStatus();
         // if we have closed the ticket, and return on close is set, then we should do a redirect dependant on the setting
         if ($new_st->is_closed && SupportUsers::getSetting("return_on_close")) {
             $link = SupportHelper::parseRedirectType($old_st->id, SupportUsers::getSetting("return_on_close"));
         }
         if ($new_st->is_closed && !$old_st->is_closed) {
             // SEND CLOSED EMAIL HERE!
             if (!FSS_Settings::get('support_email_on_close_no_dropdown')) {
                 FSS_EMail::Admin_Close($ticket, $ticket->title, '', array());
             }
         }
     }
     JFactory::getApplication()->redirect($link);
     exit;
 }
开发者ID:vstorm83,项目名称:propertease,代码行数:39,代码来源:task.update.php


示例12: Item

    function Item($title, $link, $icon, $help)
    {
        ?>
		<div class="fss_main_item fssTip" title="<?php 
        echo JText::_($help);
        ?>
">	
			<div class="fss_main_icon">
				<a href="<?php 
        echo FSSRoute::_($link);
        // OK
        ?>
">
					<img src="<?php 
        echo JURI::root(true);
        ?>
/administrator/components/com_fss/assets/images/<?php 
        echo $icon;
        ?>
-48x48.png" width="48" height="48">
				</a>
			</div>
			<div class="fss_main_text">
				<a href="<?php 
        echo FSSRoute::_($link);
        // OK
        ?>
">
					<?php 
        echo JText::_($title);
        ?>
				</a>
			</div>
		</div>	
<?php 
    }
开发者ID:vstorm83,项目名称:propertease,代码行数:36,代码来源:view.html.php


示例13: GetCaptcha

 function GetCaptcha($setting = 'captcha_type', $direct = '')
 {
     $usecaptcha = FSS_Settings::get($setting);
     if ($direct != "") {
         $usecaptcha = $direct;
     }
     if ($usecaptcha == "") {
         return "";
     }
     if ($usecaptcha == "fsj") {
         return "<img src='" . FSSRoute::_("index.php?option=com_fss&task=captcha_image&random=" . rand(0, 65535)) . "' /><input id='security_code' name='security_code' type='text' style='position: relative; left: 3px;'/>";
     }
     if ($usecaptcha == "recaptcha") {
         $document = JFactory::getDocument();
         $document->addScript("https://www.google.com/recaptcha/api.js");
         $fss_publickey = FSS_Settings::get('recaptcha_public');
         if (!$fss_publickey) {
             $fss_publickey = "12345";
         }
         $html = '<div class="g-recaptcha" data-sitekey="' . $fss_publickey . '"></div>';
         return $html;
     }
     return "";
 }
开发者ID:vstorm83,项目名称:propertease,代码行数:24,代码来源:captcha.php


示例14: CheckTicketLink

 static function CheckTicketLink()
 {
     $ticket_id = FSS_Input::getInt('t');
     $ticket_pass = FSS_Input::getString('p');
     if ($ticket_pass && $ticket_id > 0) {
         $db = JFactory::getDBO();
         $qry = "SELECT * FROM #__fss_ticket_ticket WHERE id = " . $db->escape($ticket_id) . " AND password = '" . $db->escape($ticket_pass) . "'";
         $db->setQuery($qry);
         $ticket = $db->loadObject();
         if ($ticket) {
             $session = JFactory::getSession();
             $session->Set('ticket_pass', $ticket_pass);
             $session->Set('ticket_email', $ticket->email);
             $link = FSSRoute::_("index.php?option=com_fss&view=ticket&layout=view&ticketid=" . $ticket_id, false);
             JFactory::getApplication()->redirect($link);
         }
     }
 }
开发者ID:vstorm83,项目名称:propertease,代码行数:18,代码来源:helper.php


示例15:

_cont faq_<?php 
echo $faq['id'];
?>
_cont">
	<div class="pull-right">
		<?php 
echo $this->content->EditPanel($faq);
?>
	</div>
	<div class="media-body">
		<h5 class="media-heading" data-toggle="collapse" data-target="#faq_<?php 
echo $cat['id'] . "_" . $faq['id'];
?>
" style='cursor: pointer;'>
			<a href="<?php 
echo FSSRoute::_('index.php?option=com_fss&view=faq&faqid=' . $faq['id']);
?>
" onclick='return false;'><?php 
echo $faq['question'];
?>
</a>
		</h5>
				
		<div class="collapse" id="faq_<?php 
echo $cat['id'] . "_" . $faq['id'];
?>
">
			<?php 
if (FSS_Settings::get('glossary_faqs')) {
    echo FSS_Glossary::ReplaceGlossary($faq['answer']);
    if ($faq['fullanswer']) {
开发者ID:vstorm83,项目名称:propertease,代码行数:31,代码来源:_faq_accordian.php


示例16: ReplaceGlossary

 static function ReplaceGlossary($text)
 {
     if (stripos($text, "id='XXX_GLOSSARY_DONE_XXX'") !== FALSE) {
         return $text;
     }
     self::GetGlossary();
     FSS_Settings::GetAllViewSettings();
     if (count(self::$glossary) == 0) {
         return $text;
     }
     // build a rough list of terms in the document in question. This means less stuff for the preg to check later on
     self::$glo_ref = array();
     foreach (self::$glossary as $offset => &$data) {
         $data->limit = 999;
         if (FSS_Settings::get('glossary_word_limit') > 0) {
             $data->limit = FSS_Settings::get('glossary_word_limit');
         }
         if (empty($data->linkword)) {
             $data->linkword = $data->word;
         }
         $data->anc = self::MakeAnchor($data->word);
         $data->ref = $data->id . "-" . $data->anc;
         $linkanc = self::MakeAnchor($data->linkword);
         $linkref = $data->id . "-" . $data->anc;
         $data->href = "#";
         $data->cs = self::isWordCS($data);
         // word for regex
         $rword = preg_quote($data->word);
         $rword = str_replace("/", "\\/", $rword);
         $data->regex = "/\\b({$rword})\\b/";
         if (!$data->cs) {
             $data->regex .= "i";
         }
         if (FSS_Settings::get('glossary_link')) {
             if (FSS_Settings::$fss_view_settings['glossary_long_desc'] == 1 && $data->longdesc) {
                 // link directly to the item
                 $data->href = FSSRoute::_("index.php?option=com_fss&view=glossary&layout=word&word=" . $linkref, false);
             } else {
                 $data->href = FSSRoute::_('index.php?option=com_fss&view=glossary&letter=' . strtolower(substr($data->linkword, 0, 1)) . '#' . $linkanc, false);
             }
         }
         if (stripos($text, $data->word) !== FALSE) {
             self::$glo_ref[$data->ref] = $offset;
             $data->inuse = true;
         }
     }
     // setup empty dom object
     libxml_use_internal_errors(TRUE);
     $dom = new DOMDocument('1.0', 'UTF-8');
     FSS_Glossary::$cdom = $dom;
     $dom->substituteEntities = false;
     $dom->recover = true;
     $dom->strictErrorChecking = false;
     $dom->resolveExternals = false;
     // load the xml file. Add padding tags as the dom adds crap to the start of the output
     $dom->loadHTML('<?xml version="1.0" encoding="UTF-8"?><meta http-equiv="content-type" content="text/html; charset=utf-8"><xxxglossaryxxx>' . $text . "</xxxglossaryxxx>");
     // get list of html tags to ignore
     $tag_ignore = FSS_Settings::get('glossary_exclude');
     $tag_ignore = explode(",", $tag_ignore);
     $tags = array();
     $tags[] = "a";
     foreach ($tag_ignore as $tag) {
         $tag = trim($tag);
         if (!$tag) {
             continue;
         }
         $tags[] = $tag;
     }
     // replace all glossary terms
     FSS_Glossary::preg_replace_dom($dom->documentElement, $tags);
     // get resultant html
     $result = $dom->saveHTML();
     //$result = str_replace("&amp;","&", $result);
     // use padding added earlier to remove appended content
     $pos1 = strpos($result, "<xxxglossaryxxx>") + 16;
     $pos2 = strrpos($result, "</xxxglossaryxxx>");
     $result = substr($result, $pos1, $pos2 - $pos1) . "<div style='display: none' id='XXX_GLOSSARY_DONE_XXX'></div>";
     return $result;
 }
开发者ID:vstorm83,项目名称:propertease,代码行数:79,代码来源:glossary.php


示例17: defined

 * @copyright (C) 2013 Freestyle Joomla
 * @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
**/
defined('_JEXEC') or die;
FSS_Translate_Helper::TrSingle($product);
?>

<div class='media kb_prod_<?php 
echo $product['id'];
?>
 test_prod_accordion'>

	<?php 
$link = "#";
if ($this->test_show_prod_mode != "inline" && $this->test_show_prod_mode != "accordian") {
    $link = FSSRoute::_('index.php?option=com_fss&view=test&prodid=' . $product['id']);
}
// FIX LINK
?>
	
	<?php 
if ($product['image']) {
    ?>
	<div class='pull-left'>
		<a href="<?php 
    echo $link;
    ?>
" <?php 
    if ($link == "#") {
        echo "onclick='return false;'";
    }
开发者ID:vstorm83,项目名称:propertease,代码行数:31,代码来源:_prod.php


示例18: encodeURIComponent

	jQuery('#tags').html("<?php 
echo JText::_('PLEASE_WAIT');
?>
");
	var url = '<?php 
echo FSSRoute::x("&task=update.add_tag", false);
?>
&tag=' + encodeURIComponent(tagname);
	jQuery('#tags').load(url);
	return false;
}

function cancelReply()
{
	window.location.href = '<?php 
echo FSSRoute::_("index.php?option=com_fss&view=admin_support&ticketid=" . $this->ticket->id, false);
?>
';
}

function sigsRefresh()
{
	jQuery('#signature_container').html("<?php 
echo JText::_('PLEASE_WAIT');
?>
");
	var url = '<?php 
echo JRoute::_('index.php?option=com_fss&view=admin_support&tmpl=component&layout=signature&task=signature.dropdown', false);
?>
';
	jQuery('#signature_container').load(url);
开发者ID:vstorm83,项目名称:propertease,代码行数:31,代码来源:reply.php


示例19:

            echo JText::_("EDIT_FIELD");
            ?>
"></i> 
				</a>
			<?php 
        }
        ?>

			<?php 
        if ($field['advancedsearch'] == 1) {
            ?>
				<?php 
            if (array_key_exists($field['id'], $this->ticket->custom)) {
                ?>
					<a class='pull-right padding-left-small' href="<?php 
                echo FSSRoute::_("index.php?option=com_fss&view=admin_support&what=search&searchtype=advanced&custom_" . $field['id'] . "=" . $this->ticket->custom[$field['id']]['value']);
                ?>
">
						<i class="icon-search fssTip" title="<?php 
                echo JText::_("SIMILAR_TICKETS");
                ?>
"></i> 
					</a>
				<?php 
            }
            ?>
			<?php 
        }
        ?>
			
			<?php 
开发者ID:vstorm83,项目名称:propertease,代码行数:31,代码来源:_ticket_info.php


示例20: foreach

					<?php 
        $msg = $message['body'];
        $msg = FSS_Helper::ParseBBCode($msg, $message);
        echo $msg;
        ?>
				</div>
				
				<?php 
        if (array_key_exists("attach", $message)) {
            ?>
					<?php 
            foreach ($message['attach'] as &$attach) {
                ?>
						<div class="padding-mini">
							<a href='<?php 
                echo FSSRoute::_('index.php?option=com_fss&view=ticket&fileid=' . $attach['id']);
                ?>
'>
								<img src='<?php 
                echo JURI::root(true);
                ?>
/components/com_fss/assets/images/download-16x16.png'>
								<?php 
                echo $attach['filename'];
                ?>
							</a>
						</div>
					<?php 
            }
            ?>
				<?php 
开发者ID:vstorm83,项目名称:propertease,代码行数:31,代码来源:_messages_print.php



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
PHP FSS_Helper类代码示例发布时间:2022-05-23
下一篇:
PHP FSSJ3Helper类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

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

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

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