mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 01:01:41 +09:00
addon module
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@9032 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
2a8c16d4f9
commit
ee174adb5e
3 changed files with 10 additions and 24 deletions
|
|
@ -88,11 +88,6 @@
|
|||
$this->makeCacheFile(0, 'mobile', 'global');
|
||||
}
|
||||
|
||||
// set favorite
|
||||
$oAdminController = &getAdminController('admin');
|
||||
$output = $oAdminController->setFavoritesByModule(-1, 'addon', $favorite);
|
||||
if (!$output->toBool()) return $output;
|
||||
|
||||
$this->setRedirectUrl(getNotEncodedUrl('', 'module', 'admin', 'act', 'dispAddonAdminIndex'));
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -19,17 +19,19 @@
|
|||
**/
|
||||
function dispAddonAdminIndex() {
|
||||
$oAdminModel = &getAdminModel('admin');
|
||||
$siteModuleInfo = Context::get('site_module_info');
|
||||
$output = $oAdminModel->getFavoriteListByModule(-1, 'addon');
|
||||
if (!$output->toBool()) return $output;
|
||||
|
||||
$favoriteList = $output->get('list');
|
||||
Context::set('favoriteList', $favoriteList);
|
||||
|
||||
$site_module_info = Context::get('site_module_info');
|
||||
// Add to the list settings
|
||||
$oAddonModel = &getAdminModel('addon');
|
||||
$addon_list = $oAddonModel->getAddonListForSuperAdmin();
|
||||
|
||||
$security = new Security($addon_list);
|
||||
$addon_list = $security->encodeHTML('..', '..author..');
|
||||
|
||||
foreach($addon_list as $no => $addon_info)
|
||||
{
|
||||
$addon_list[$no]->description = nl2br(trim($addon_info->description));
|
||||
}
|
||||
|
||||
Context::set('addon_list', $addon_list);
|
||||
Context::set('addon_count', count($addon_list));
|
||||
// Template specifies the path and file
|
||||
|
|
|
|||
|
|
@ -12,7 +12,6 @@
|
|||
<caption>All({$addon_count})</caption>
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col">{$lang->favorite}</th>
|
||||
<th scope="col" class="title">{$lang->addon_name}</th>
|
||||
<th scope="col">{$lang->version}</th>
|
||||
<th scope="col">{$lang->author}</th>
|
||||
|
|
@ -20,23 +19,14 @@
|
|||
<th scope="col">{$lang->cmd_setup}</th>
|
||||
<th scope="col">PC</th>
|
||||
<th scope="col">Mobile</th>
|
||||
<th scope="col">
|
||||
{$lang->fixed}[<a href="#fixed" class="tgAnchor">?</a>]
|
||||
<div id="fixed" class="tgContent layer" style="right:0;">
|
||||
<p>{$lang->about_fixed}</p>
|
||||
</div>
|
||||
</th>
|
||||
<th scope="col">{$lang->cmd_delete}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr loop="$addon_list => $addon">
|
||||
<td>
|
||||
<input type="checkbox" name="favorite[]" value="{$addon->addon_name}" checked="checked"|cond="$favoriteList[$addon->addon_name]" />
|
||||
</td>
|
||||
<td class="title">
|
||||
<p><strong>{$addon->title}</strong></p>
|
||||
<p>{cut_str($addon->description, 200)}</p>
|
||||
<p>{$addon->description}</p>
|
||||
<p cond="$addon->need_update == 'Y'" class="update">
|
||||
{$lang->msg_avail_update} <a href="{$addon->update_url}&return_url={urlencode(getRequestUriByServerEnviroment())}">{$lang->msg_do_you_like_update}</a>
|
||||
</p>
|
||||
|
|
@ -52,7 +42,6 @@
|
|||
<td><a href="{getUrl('act', 'dispAddonAdminSetup', 'selected_addon', $addon->addon_name)}">{$lang->cmd_setup}</a></td>
|
||||
<td><input type="checkbox" name="pc[]" title="PC" value="{htmlspecialchars($addon->addon_name)}" checked="checked"|cond="$addon->activated" /></td>
|
||||
<td><input type="checkbox" name="mobile[]" title="Mobile" value="{htmlspecialchars($addon->addon_name)}" checked="checked"|cond="$addon->mactivated" /></td>
|
||||
<td><input type="checkbox" name="fixed[]" title="{$lang->fixed}" value="{htmlspecialchars($addon->addon_name)}" checked="checked"|cond="$addon->fixed" /></td>
|
||||
<td><a cond="$addon->remove_url" href="{$addon->remove_url}&return_url={urlencode(getRequestUriByServerEnviroment())}">{$lang->cmd_delete}</a></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue