Exemplo n.º 1
0
 function getTopicsRows()
 {
     $request = new Request();
     $request->setView(CURRENT_REQUEST_URL);
     $self_url = $request->getURL();
     $res = '';
     $counter = 0;
     foreach ($this->topics as $topic) {
         $counter++;
         $vars = array('TopicId' => prepareHTMLDisplay($topic['topic_id']), 'TopicName' => prepareHTMLDisplay($topic['topic_name']), 'TopicEmails' => prepareHTMLDisplay($topic['topic_emails']), 'TopicOrder' => prepareHTMLDisplay(isset($this->POST['sort_order'][$topic['topic_id']]) ? $this->POST['sort_order'][$topic['topic_id']] : $topic['sort_order']), 'TopicStatusName' => modApiFunc('Subscriptions', 'getTopicStatusName', $topic['topic_status']), 'TopicAccessName' => modApiFunc('Subscriptions', 'getTopicAccessName', $topic['topic_access']), 'TopicAutoSubscribeName' => modApiFunc('Subscriptions', 'getTopicAutoSubscribeName', $topic['topic_auto']), 'EditTopicURL' => escapeAttr('javascript:editTopic("' . escapeJSString($topic['topic_id']) . '")'), 'TopicEmailsURL' => $self_url . '?topic=' . prepareHTMLDisplay($topic['topic_id']), 'TopicSelected' => isset($this->POST['topic_id'][$topic['topic_id']]) ? 'checked' : '', 'RowClass' => isset($this->POST['topic_id'][$topic['topic_id']]) ? 'selected' : '');
         $res .= $this->_tmplFiller->fill('topics/', 'item.tpl.html', $vars);
     }
     if ($counter == 0) {
         $res .= $this->_tmplFiller->fill('topics/', 'item_no_items.tpl.html', array());
         $counter++;
     }
     for ($i = 0; $i < 10 - $counter; $i++) {
         $res .= $this->_tmplFiller->fill('topics/', 'item_empty.tpl.html', array());
     }
     return $res;
 }
Exemplo n.º 2
0
function escapeAttrJS($str)
{
    return escapeAttr(escapeJSString($str));
}
Exemplo n.º 3
0
'
		},
		form_id: '<?php 
echo modApiFunc('Session', 'get', '__ASC_FORM_ID__');
?>
',
		editables_text: '<?php 
echo escapeJSString(Look_Feel::getEditorRules());
?>
',
		edited_theme: <?php 
echo $json->encode(Look_Feel::getEditedThemeObj());
?>
,
		active_theme_name: '<?php 
echo escapeJSString(Look_Feel::getActiveTheme());
?>
'
	});
});
</script>
<?php 
global $application;
echo $application->combineAdminJS(array('js/css_editor_util.js', 'js/css_editor.js'));
?>
</HEAD>
<FRAMESET cols="320,*">
  <FRAME frameborder="0" id="panel" name="css_editor_panel" src="edit_panel.php" scrolling="no">
  <FRAME frameborder="0" id="storefront" name="css_editor_storefront" src="<?php 
echo urlStorefrontBase();
?>