1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-31 11:50:30 +02:00

Changed Tabs code to bootstrap instead of jquery-ui

This commit is contained in:
Cameron
2013-02-25 02:47:23 -08:00
parent f028b5c18d
commit a2ea0f7a83
11 changed files with 370 additions and 358 deletions

View File

@@ -149,46 +149,50 @@ class emotec
$frm = e107::getForm();
$fl = e107::getFile();
$ns = e107::getRender();
$mes = e107::getMessage();
$mes = e107::getMessage();
$text = "
<div class='admintabs' id='tab-container'>
<ul class='e-tabs' id='core-emote-tabs'>
<li id='tab-activate'><a href='#emoticon-activate'>".EMOLAN_1."</a></li>
<li id='tab-packages'><a href='#emoticon-packages'>".EMOLAN_13."</a></li>
<ul class='nav nav-tabs'>
<li class='active'><a href='#emoticon-activate' data-toggle='tab'>".EMOLAN_1."</a></li>
<li><a href='#emoticon-packages' data-toggle='tab'>".EMOLAN_13."</a></li>
</ul>
<form method='post' action='".e_SELF."'>
<fieldset id='emoticon-activate'>
<legend>".EMOLAN_1."</legend>
<table class='table adminlist'>
<colgroup>
<col style='width:30%' />
<col style='width:70%' />
</colgroup>
<tbody>
<tr>
<td>
".EMOLAN_4.":
</td>
<td>
<div class='auto-toggle-area autocheck'>
".$frm->checkbox('smiley_activate', 1, varset($pref['smiley_activate'],0))."
</div>
</td>
</tr>
</tbody>
</table>
<div class='buttons-bar center'>
".$frm->admin_button('active','active','update',LAN_UPDATE)."
</div>
</fieldset>
</form>
<div class='tab-content'>
<div class='tab-pane active' id='emoticon-activate'>
<fieldset>
<form method='post' action='".e_SELF."'>
<legend>".EMOLAN_1."</legend>
<table class='table adminform'>
<colgroup>
<col style='width:30%' />
<col style='width:70%' />
</colgroup>
<tbody>
<tr>
<td>
".EMOLAN_4.":
</td>
<td>
<div class='auto-toggle-area autocheck'>
".$frm->checkbox('smiley_activate', 1, varset($pref['smiley_activate'],0))."
</div>
</td>
</tr>
</tbody>
</table>
<div class='buttons-bar center'>
".$frm->admin_button('active','active','update',LAN_UPDATE)."
</div>
<fieldset>
</form>
</div>
";
$text .= "
<div class='tab-pane' id='emoticon-packages'>
<form method='post' action='".e_SELF."#etabTabContainer=emoticon-packages'>
<fieldset id='emoticon-packages'>
<fieldset>
<legend>".EMOLAN_13."</legend>
<table class='table adminlist'>
<colgroup>
@@ -266,7 +270,9 @@ class emotec
</table>
</fieldset>
</form>
</div>
</div>
";
$ns->tablerender(EMOLAN_PAGE_TITLE, $mes->render().$text);

View File

@@ -312,7 +312,7 @@ if (abs($_serverTime - $lastSet) > 120)
*/
// echo "<script type='text/javascript'>\n";
e107::js('footer-inline',"SyncWithServerTime('{$_serverTime}', '{$_serverPath}', '{$_serverDomain}');",'prototype');
// e107::js('footer-inline',"SyncWithServerTime('{$_serverTime}', '{$_serverPath}', '{$_serverDomain}');",'prototype');
//echo "SyncWithServerTime('{$_serverTime}', '{$_serverPath}', '{$_serverDomain}');
// </script>\n";

View File

@@ -79,7 +79,7 @@ e107::js("core", "core/all.jquery.js","jquery",4); // Load all default functions
e107::js("core", "core/admin.js","prototype",3); // Load all default functions.
// e107::js("core", "core/admin.js","prototype",3); // Load all default functions.
//
@@ -382,11 +382,13 @@ e107::getJs()->renderJs('header', 5);
* Fire Event e107:loaded - Prototype only
*/
//\$('e-js-css').remove();
/*
e107::js('inline',"
document.observe('dom:loaded', function () {
e107Event.trigger('loaded', null, document);
});
",'prototype',5);
*/
e107::getJs()->renderJs('header_inline', 5);

View File

@@ -961,14 +961,14 @@ class media_admin_ui extends e_admin_ui
$bbcodeMode = ($this->getQuery('bbcode')=='img') ? 'bbcode=img' : FALSE;
$text = "
<div class='admintabs' id='tab-container'>
<ul class='e-tabs' id='core-emote-tabs'>
<li id='tab-select'><a href='#core-media-select'>Choose from Library</a></li>
<li id='tab-upload'><a href='#core-media-upload'>Upload a File</a></li>";
<ul class='nav nav-tabs'>
<li class='active'><a data-toggle='tab' href='#core-media-select'>Choose from Library</a></li>
<li><a data-toggle='tab' href='#core-media-upload'>Upload a File</a></li>";
if($bbcodeMode)
{
$text .= "<li id='tab-style'><a href='#core-media-style'>Appearance</a></li>\n";
$text .= "<li><a data-toggle='tab' href='#core-media-style'>Appearance</a></li>\n";
}
if($_GET['from'])
@@ -979,7 +979,8 @@ class media_admin_ui extends e_admin_ui
$text .= "
</ul>
<fieldset id='core-media-select'>
<div class='tab-content'>
<div class='tab-pane active' id='core-media-select'>
<legend>Library</legend>
<div class='table' style='display:block; height:500px'>
@@ -1000,9 +1001,9 @@ class media_admin_ui extends e_admin_ui
$text .= "
</div>
</fieldset>
</div>
<fieldset id='core-media-upload'>
<div class='tab-pane' id='core-media-upload'>
<legend>Upload</legend>";
$this->fields['media_category']['readonly'] = TRUE;
@@ -1013,7 +1014,7 @@ class media_admin_ui extends e_admin_ui
// $text .= $this->CreatePage(); // comment me out to test plupload
$text .= "
</fieldset>";
</div>";
/* In BBCODE-Mode this dialog rerturns an [img] bbcode to the 'tagid' container with the appropriate parms generated.
* eg. [img style=float:left;margin-right:3px]{e_MEDIA_IMAGE}someimage.jpg[/img]
@@ -1510,7 +1511,7 @@ class media_admin_ui extends e_admin_ui
// $files = $fl->get_files(e_MEDIA."temp/");
$files = $fl->get_files(e_TEMP);
e107::js('core','core/admin.js','prototype');
// e107::js('core','core/admin.js','prototype');
//TODO Detect XML file, and if found - read that instead of the directory.

View File

@@ -33,7 +33,7 @@ $gen = new convert();
//Handle Ajax Calls
if($newspost->ajax_observer()) exit;
e107::js('core','core/admin.js','prototype');
// e107::js('core','core/admin.js','prototype');
//e107::getJs()->requireCoreLib('core/admin.js');
class news_admin extends e_admin_dispatcher

View File

@@ -1455,38 +1455,40 @@ class pluginBuilder
}
$text = $frm->open('newplugin-step3','post', e_SELF.'?mode=create&newplugin='.$newplug.'&step=3');
$text .= "<div class='admintabs' id='tab-container'>\n";
$text .= "<ul class='e-tabs' id='core-emote-tabs'>\n";
$text .= "<li id='tab-xml'><a href='#xml'>Basic Info.</a></li>";
$text .= "<ul class='nav nav-tabs'>\n";
$text .= "<li class='active'><a data-toggle='tab' href='#xml'>Basic Info.</a></li>";
$this->tableCount = count($ret['tables']);
foreach($ret['tables'] as $key=>$table)
{
$text .= "<li id='tab-".$table."'><a href='#".$table."'>Table: ".$table."</a></li>";
$text .= "<li><a data-toggle='tab' href='#".$table."'>Table: ".$table."</a></li>";
}
$text .= "<li id='tab-preferences'><a href='#preferences'>Preferences</a></li>";
$text .= "<li><a data-toggle='tab' href='#preferences'>Preferences</a></li>";
$text .= "</ul>";
$text .= "<div class='tab-content'>\n";
$text .= "<div class='tab-pane active' id='xml'>\n";
$text .= $this->pluginXml();
$text .= "</div>";
foreach($ret['tables'] as $key=>$table)
{
$text .= "<fieldset id='".$table."'>\n";
$text .= "<div class='tab-pane' id='".$table."'>\n";
$fields = $dv->getFields($ret['data'][$key]);
$text .= $this->form($table,$fields);
$text .= "</fieldset>";
$text .= "</div>";
}
$text .= "<fieldset id='preferences'>\n";
$text .= "<div class='tab-pane' id='preferences'>\n";
$text .= $this->prefs();
$text .= "</fieldset>";
$text .= "</div>";
$text .= "<fieldset id='xml'>\n";
$text .= $this->pluginXml();
$text .= "</fieldset>";
$text .= "</div>";
@@ -1581,7 +1583,7 @@ class pluginBuilder
}
}
$text = "<table class='table adminlist'>";
$text = "<table class='table adminform'>";
foreach($data as $key=>$val)
{

View File

@@ -1762,7 +1762,7 @@ $text .= "
";
/*
e107::js('inline',"
\$\$('#e-jslib-nocombine', '#e-jslib-nocombine-1').invoke('observe', 'change', function(event) {
var element = event.findElement('input'), check = !parseInt(element.value);
@@ -1781,7 +1781,7 @@ $text .= "
eHandleJsForm(".($pref['e_jslib_nocombine'] ? 'false' : 'true').");
","prototype");
*/
//Advanced Features

View File

@@ -160,7 +160,7 @@ else
echo '
<div id="myModal" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div id="myModal" class="modal hide fade" tabindex="-1" role="dialog" aria-hidden="true">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
&nbsp;

View File

@@ -914,287 +914,282 @@ class themeHandler
$text = "
<h2 class='caption'>".$theme['name']."</h2>
<div id='tab-container' class='e-tabs'>
<ul id='core-thememanager-tabs'>
<li><a href='#core-thememanager-configure'>".LAN_CONFIGURE."</a></li>";
<ul class='nav nav-tabs'>
<li class='active'><a data-toggle='tab' href='#core-thememanager-configure'>".LAN_CONFIGURE."</a></li>";
if($this->themeConfigObj && call_user_func(array(&$this->themeConfigObj, 'help')))
{
$text .= "<li><a href='#core-thememanager-help'>".LAN_HELP."</a></li>";
$text .= "<li><a data-toggle='tab' href='#core-thememanager-help'>".LAN_HELP."</a></li>\n";
}
$text .= "</ul>
<fieldset id='core-thememanager-configure'>
<table class='table adminform'>
<colgroup>
<col class='col-label' />
<col class='col-control' />
<col class='col-control' />
</colgroup>
<tr>
<td><b>".TPVLAN_11."</b></td>
<td>".$theme['version']."</td>
<td class='center middle' rowspan='6' style='text-align:center; vertical-align:middle;width:25%'>".$thumbnail."</td>
</tr>";
$text .= "<tr><td style='vertical-align:top; width:25%'><b>".TPVLAN_4."</b>:</td><td style='vertical-align:top'>".$author."</td></tr>";
$text .= "<tr><td style='vertical-align:top; width:25%'><b>".TPVLAN_5."</b>:</td><td style='vertical-align:top'>".$website."</td></tr>";
$text .= "<tr><td style='vertical-align:top; width:25%'><b>".TPVLAN_6."</b>:</td><td style='vertical-align:top'>".$theme['date']."</td></tr>";
$text .= "<tr><td style='vertical-align:top; width:25%'><b>".TPVLAN_7."</b>:</td><td style='vertical-align:top'>".$theme['info']."</td></tr>";
$text .= "<tr><td style='vertical-align:top; width:25%'><b>".LAN_CATEGORY."</b>:</td><td style='vertical-align:top'>".$theme['category']."</td></tr>";
$text .= "<tr><td style='vertical-align:top; width:25%'><b>".TPVLAN_49."</b>:</td>
<td style='vertical-align:top'>";
$text .= ($theme['xhtmlcompliant']) ? "W3C XHTML ".$theme['xhtmlcompliant'] : "Not Specified";
$text .= ($theme['csscompliant']) ? " &amp; CSS ".$theme['csscompliant'] : "";
$text .= "</td></tr>";
// site theme..
if($mode == 1)
{
$text .= "
<div class='tab-content'>
<div class='tab-pane active' id='core-thememanager-configure'>
<table class='table adminform'>
<colgroup>
<col class='col-label' />
<col class='col-control' />
<col class='col-control' />
</colgroup>
<tr>
<td style='vertical-align:top; width:24%;'><b>".TPVLAN_53."</b></td>
<td colspan='2' style='vertical-align:top width:auto;'>";
if(varset($theme['plugins']))
{
foreach ($theme['plugins'] as $key=>$val)
{
$text .= $this->renderPlugins($theme['plugins']);
$text .= "&nbsp;";
}
}
$text .= "&nbsp;</td>
</tr>";
$text .= "
<tr>
<td style='vertical-align:top; width:24%;'><b>".TPVLAN_30."</b></td>
<td colspan='2' style='vertical-align:top width:auto;'>
<input type='radio' name='image_preload' value='1'".($pref['image_preload'] ? " checked='checked'" : "")." /> ".TPVLAN_28."&nbsp;&nbsp;
<input type='radio' name='image_preload' value='0'".(!$pref['image_preload'] ? " checked='checked'" : "")." /> ".TPVLAN_29."
</td>
</tr>";
}
<td><b>".TPVLAN_11."</b></td>
<td>".$theme['version']."</td>
<td class='center middle' rowspan='6' style='text-align:center; vertical-align:middle;width:25%'>".$thumbnail."</td>
</tr>";
// New in 0.8 ---- site theme.
if($mode == 1)
{
$itext = "<tr>
<td style='vertical-align:top; width:24%'><b>".TPVLAN_50."</b>:</td>
<td colspan='2' style='vertical-align:top'>
<table class='table adminlist'>
<colgroup>
<col class='col-tm-layout-default' style='width:10%' />
<col class='col-tm-layout-name' style='width:20%' />
<col class='col-tm-layout-visibility' style='width:35%' />
<col class='col-tm-layout-preset' style='width:35%' />
</colgroup>
<tr>";
$itext .= ($mode == 1) ? "<td class='center top'>".TPVLAN_55."</td>" : "";
$itext .= "
<td>".TPVLAN_52."</td>
<td>".TPVLAN_56."</td>
<td>".TPVLAN_54."</td>
</tr>\n";
foreach ($theme['layouts'] as $key=>$val)
{
$itext .= "
<tr>";
if($mode == 1)
{
if(!$pref['sitetheme_deflayout'])
{
$pref['sitetheme_deflayout'] = ($val['@attributes']['default'] == 'true') ? $key : "";
}
$itext .= "<td class='center'>\n";
$text .= "<tr><td style='vertical-align:top; width:25%'><b>".TPVLAN_4."</b>:</td><td style='vertical-align:top'>".$author."</td></tr>";
$text .= "<tr><td style='vertical-align:top; width:25%'><b>".TPVLAN_5."</b>:</td><td style='vertical-align:top'>".$website."</td></tr>";
$text .= "<tr><td style='vertical-align:top; width:25%'><b>".TPVLAN_6."</b>:</td><td style='vertical-align:top'>".$theme['date']."</td></tr>";
$itext .= "
<input type='radio' name='layout_default' value='{$key}' ".($pref['sitetheme_deflayout'] == $key ? " checked='checked'" : "")." />
</td>";
}
$itext .= "<td style='vertical-align:top'>";
// $itext .= ($val['@attributes']['previewFull']) ? "<a href='".e_THEME_ABS.$theme['path']."/".$val['@attributes']['previewFull']."' >" : "";
$itext .= $val['@attributes']['title'];
// $itext .= ($val['@attributes']['previewFull']) ? "</a>" : "";
$custompage_count = (isset($pref['sitetheme_custompages'][$key])) ? " [".count($pref['sitetheme_custompages'][$key])."]" : "";
$custompage_diz = "";
$count = 1;
if(isset($pref['sitetheme_custompages'][$key]) && count($pref['sitetheme_custompages'][$key]) > 0)
{
foreach ($pref['sitetheme_custompages'][$key] as $cp)
$text .= "<tr><td style='vertical-align:top; width:25%'><b>".TPVLAN_7."</b>:</td><td style='vertical-align:top'>".$theme['info']."</td></tr>";
$text .= "<tr><td style='vertical-align:top; width:25%'><b>".LAN_CATEGORY."</b>:</td><td style='vertical-align:top'>".$theme['category']."</td></tr>";
$text .= "<tr><td style='vertical-align:top; width:25%'><b>".TPVLAN_49."</b>:</td>
<td style='vertical-align:top' colspan='2'>";
$text .= ($theme['xhtmlcompliant']) ? "W3C XHTML ".$theme['xhtmlcompliant'] : "Not Specified";
$text .= ($theme['csscompliant']) ? " &amp; CSS ".$theme['csscompliant'] : "";
$text .= "</td></tr>";
// site theme..
if($mode == 1)
{
$custompage_diz .= "<a href='#element-to-be-shown-{$key}' class='btn btn-mini e-expandit'>".trim($cp)."</a>&nbsp;";
if($count > 4)
$text .= "
<tr>
<td style='vertical-align:top; width:24%;'><b>".TPVLAN_53."</b></td>
<td colspan='2' style='vertical-align:top width:auto;'>";
if(varset($theme['plugins']))
{
$custompage_diz .= "...";
break;
foreach ($theme['plugins'] as $key=>$val)
{
$text .= $this->renderPlugins($theme['plugins']);
$text .= "&nbsp;";
}
}
$count++;
}
}
else
{
$custompage_diz = "<a href='#element-to-be-shown-{$key}' title='Set pages which should automatically use this layout. One per line.' class='e-tip btn btn-mini e-expandit'>None</a> ";
}
$itext .= "</td>
<td style='vertical-align:top'>";
// Default
$itext .= ($pref['sitetheme_deflayout'] != $key) ? $custompage_diz."<div class='e-hideme' id='element-to-be-shown-{$key}'><textarea style='width:97%' rows='6' placeholder='usersettings.php' cols='20' name='custompages[".$key."]' >".(isset($pref['sitetheme_custompages'][$key]) ? implode("\n", $pref['sitetheme_custompages'][$key]) : "")."</textarea></div>\n" : TPVLAN_55;
$itext .= "</td>";
$itext .= "<td>";
$itext .= (varset($val['menuPresets'])) ? $this->frm->admin_button("setMenuPreset[".$key."]", "Use Preset") : "";
$itext .= "</td>
$text .= "&nbsp;</td>
</tr>";
}
$text .= "
<tr>
<td style='vertical-align:top; width:24%;'><b>".TPVLAN_30."</b></td>
<td colspan='2' style='vertical-align:top width:auto;'>
<input type='radio' name='image_preload' value='1'".($pref['image_preload'] ? " checked='checked'" : "")." /> ".TPVLAN_28."&nbsp;&nbsp;
<input type='radio' name='image_preload' value='0'".(!$pref['image_preload'] ? " checked='checked'" : "")." /> ".TPVLAN_29."
</td>
</tr>";
}
// New in 0.8 ---- site theme.
if($mode == 1)
{
$itext = "<tr>
<td style='vertical-align:top; width:24%'><b>".TPVLAN_50."</b>:</td>
<td colspan='2' style='vertical-align:top'>
<table class='table adminlist'>
<colgroup>
<col class='col-tm-layout-default' style='width:10%' />
<col class='col-tm-layout-name' style='width:20%' />
<col class='col-tm-layout-visibility' style='width:35%' />
<col class='col-tm-layout-preset' style='width:35%' />
</colgroup>
<tr>";
$itext .= ($mode == 1) ? "<td class='center top'>".TPVLAN_55."</td>" : "";
$itext .= "
<td>".TPVLAN_52."</td>
<td>".TPVLAN_56."</td>
<td>".TPVLAN_54."</td>
$itext .= "</table></td></tr>";
}
</tr>\n";
foreach ($theme['layouts'] as $key=>$val)
{
$itext .= "
<tr>";
if($mode == 1)
{
if(!$pref['sitetheme_deflayout'])
{
$pref['sitetheme_deflayout'] = ($val['@attributes']['default'] == 'true') ? $key : "";
}
$itext .= "<td class='center'>\n";
$itext .= "
<input type='radio' name='layout_default' value='{$key}' ".($pref['sitetheme_deflayout'] == $key ? " checked='checked'" : "")." />
</td>";
}
$itext .= "<td style='vertical-align:top'>";
// $itext .= ($val['@attributes']['previewFull']) ? "<a href='".e_THEME_ABS.$theme['path']."/".$val['@attributes']['previewFull']."' >" : "";
$itext .= $val['@attributes']['title'];
// $itext .= ($val['@attributes']['previewFull']) ? "</a>" : "";
$custompage_count = (isset($pref['sitetheme_custompages'][$key])) ? " [".count($pref['sitetheme_custompages'][$key])."]" : "";
$custompage_diz = "";
$count = 1;
if(isset($pref['sitetheme_custompages'][$key]) && count($pref['sitetheme_custompages'][$key]) > 0)
{
foreach ($pref['sitetheme_custompages'][$key] as $cp)
{
$custompage_diz .= "<a href='#element-to-be-shown-{$key}' class='btn btn-mini e-expandit'>".trim($cp)."</a>&nbsp;";
if($count > 4)
{
$custompage_diz .= "...";
break;
}
$count++;
}
}
else
{
$custompage_diz = "<a href='#element-to-be-shown-{$key}' title='Set pages which should automatically use this layout. One per line.' class='e-tip btn btn-mini e-expandit'>None</a> ";
}
$itext .= "</td>
<td style='vertical-align:top'>";
// Default
$itext .= ($pref['sitetheme_deflayout'] != $key) ? $custompage_diz."<div class='e-hideme' id='element-to-be-shown-{$key}'><textarea style='width:97%' rows='6' placeholder='usersettings.php' cols='20' name='custompages[".$key."]' >".(isset($pref['sitetheme_custompages'][$key]) ? implode("\n", $pref['sitetheme_custompages'][$key]) : "")."</textarea></div>\n" : TPVLAN_55;
$itext .= "</td>";
$itext .= "<td>";
$itext .= (varset($val['menuPresets'])) ? $this->frm->admin_button("setMenuPreset[".$key."]", "Use Preset") : "";
$itext .= "</td>
</tr>";
}
$itext .= "</table></td></tr>";
}
// $itext .= !$mode ? "<tr><td style='vertical-align:top;width:24%'><b>".TPVLAN_8."</b>:</td><td style='vertical-align:top'>".$previewbutton.$selectmainbutton.$selectadminbutton."</td></tr>" : "";
if($mode == 2)
{
$astext = "";
$file = e107::getFile();
$adminstyles = $file->get_files(e_ADMIN."includes");
$astext = "\n<select id='mode2' name='adminstyle' class='tbox'>\n";
foreach ($adminstyles as $as)
{
$style = str_replace(".php", "", $as['fname']);
$astext .= "<option value='{$style}'".($pref['adminstyle'] == $style ? " selected='selected'" : "").">".$style."</option>\n";
}
$astext .= "</select>";
$text .= "
<tr>
<td><b>".TPVLAN_41.":</b></td>
<td colspan='2'>".$astext."</td>
</tr>
\n";
}
if($mode == 2)
{
$astext = "";
$file = e107::getFile();
$adminstyles = $file->get_files(e_ADMIN."includes");
$astext = "\n<select id='mode2' name='adminstyle' class='tbox'>\n";
foreach ($adminstyles as $as)
{
$style = str_replace(".php", "", $as['fname']);
$astext .= "<option value='{$style}'".($pref['adminstyle'] == $style ? " selected='selected'" : "").">".$style."</option>\n";
}
$astext .= "</select>";
$text .= "
<tr>
<td><b>".TPVLAN_41.":</b></td>
<td colspan='2'>".$astext."</td>
</tr>
\n";
}
$text .= $itext;
if(array_key_exists("multipleStylesheets", $theme) && $mode)
{
$text .= "
<tr><td style='vertical-align:top;'><b>".TPVLAN_22.":</b></td>
<td colspan='2' style='vertical-align:top'>
<table class='table adminlist' >
<tr>
<td class='center' style='width:10%'>".TPVLAN_55."</td>
<td style='width:20%'>".TPVLAN_52."</td>
<td class='left'>".TPVLAN_7."</td>
</tr>";
foreach ($theme['css'] as $css)
{
$text .= $itext;
$text2 = "";
if($mode == 2) // ADMIN MODE
{
if($css['name'] == "style.css" || !vartrue($css['info'])) // Hide the admin css unless it has a header. eg. /* info: Default stylesheet */
if(array_key_exists("multipleStylesheets", $theme) && $mode)
{
continue;
$text .= "
<tr><td style='vertical-align:top;'><b>".TPVLAN_22.":</b></td>
<td colspan='2' style='vertical-align:top'>
<table class='table adminlist' >
<tr>
<td class='center' style='width:10%'>".TPVLAN_55."</td>
<td style='width:20%'>".TPVLAN_52."</td>
<td class='left'>".TPVLAN_7."</td>
</tr>";
foreach ($theme['css'] as $css)
{
$text2 = "";
if($mode == 2) // ADMIN MODE
{
if($css['name'] == "style.css" || !vartrue($css['info'])) // Hide the admin css unless it has a header. eg. /* info: Default stylesheet */
{
continue;
}
if(!$css['nonadmin'])
{
$text2 = "
<td class='center'>".
$frm->radio('admincss', $css['name'], vartrue($pref['admincss'],"admin_style.css"))."
</td>
<td><label for='admincss'>".$css['name']."</label></td>
<td>".($css['info'] ? $css['info'] : ($css['name'] == "admin_style.css" ? TPVLAN_23 : TPVLAN_24))."</td>\n";
}
}
if($mode == 1) // SITE-THEME Mode
{
if(substr($css['name'], 0, 6) == "admin_")
{
continue;
}
$text2 = "
<td class='center'>
<input type='radio' name='themecss' value='".$css['name']."' ".($pref['themecss'] == $css['name'] || (!$pref['themecss'] && $css['name'] == "style.css") ? " checked='checked'" : "")." />
</td>
<td>".$css['name']."
</td>
<td>".($css['info'] ? $css['info'] : ($css['name'] == "style.css" ? TPVLAN_23 : TPVLAN_24))."</td>\n";
}
$text .= ($text2) ? "<tr>".$text2."</tr>" : "";
}
$text .= "</table></td></tr>";
}
if(!$css['nonadmin'])
if($mode == 1)
{
$text2 = "
<td class='center'>".
$frm->radio('admincss', $css['name'], vartrue($pref['admincss'],"admin_style.css"))."
</td>
<td><label for='admincss'>".$css['name']."</label></td>
<td>".($css['info'] ? $css['info'] : ($css['name'] == "admin_style.css" ? TPVLAN_23 : TPVLAN_24))."</td>\n";
}
}
if($mode == 1) // SITE-THEME Mode
{
if(substr($css['name'], 0, 6) == "admin_")
{
continue;
$text .= $this->renderThemeConfig();
}
$text2 = "
<td class='center'>
<input type='radio' name='themecss' value='".$css['name']."' ".($pref['themecss'] == $css['name'] || (!$pref['themecss'] && $css['name'] == "style.css") ? " checked='checked'" : "")." />
</td>
<td>".$css['name']."
</td>
<td>".($css['info'] ? $css['info'] : ($css['name'] == "style.css" ? TPVLAN_23 : TPVLAN_24))."</td>\n";
}
$text .= ($text2) ? "<tr>".$text2."</tr>" : "";
$text .= "</table>
<div class='center buttons-bar'>";
}
if($mode == 2) // admin
{
$mainid = "selectmain[".$theme['id']."]";
$text .= $this->frm->admin_button('submit_adminstyle', TPVLAN_35, 'update');
$text .= $this->frm->admin_button($mainid, TPVLAN_10, 'other');
}
else // main
{
$adminid = "selectadmin[".$theme['id']."]";
$text .= $this->frm->admin_button('submit_style', TPVLAN_35, 'update');
$text .= $this->frm->admin_button($adminid, TPVLAN_32, 'other');
}
$text .= "<input type='hidden' name='curTheme' value='".$theme['path']."' />";
$text .= "</table></td></tr>";
}
if($mode == 1)
{
$text .= $this->renderThemeConfig();
}
$text .= "</table>
<div class='center buttons-bar'>";
if($mode == 2) // admin
{
$mainid = "selectmain[".$theme['id']."]";
$text .= $this->frm->admin_button('submit_adminstyle', TPVLAN_35, 'update');
$text .= $this->frm->admin_button($mainid, TPVLAN_10, 'other');
}
else // main
{
$adminid = "selectadmin[".$theme['id']."]";
$text .= $this->frm->admin_button('submit_style', TPVLAN_35, 'update');
$text .= $this->frm->admin_button($adminid, TPVLAN_32, 'other');
}
$text .= "<input type='hidden' name='curTheme' value='".$theme['path']."' />";
$text .= "
</div>
</fieldset>
<fieldset><div class='tab-border' id='core-thememanager-help'>".$this->renderThemeHelp()."</div></fieldset>
$text .= "</div>
</div>
<div class='tab-pane' id='core-thememanager-help'>".$this->renderThemeHelp()."</div>
</div>
\n";

View File

@@ -619,7 +619,7 @@ class adminDownload extends download
$text = "
<div class='admintabs' id='tab-container'>
<ul class='e-tabs e-hideme' id='core-download-tabs'>
<ul class='e-taXXbs' e-hideme' id='core-download-tabs'>
<li id='tab-general'><a href='#download-create'>".DOWLAN_175."</a></li>
<li id='tab-external'><a href='#download-edit-external'>".DOWLAN_176."</a></li>
<li id='tab-mirror'><a href='#download-edit-mirror'>".DOWLAN_128."</a></li>
@@ -1471,7 +1471,7 @@ class adminDownload extends download
);
$text = "
<div class='admintabs' id='tab-container'>
<ul class='e-tabs e-hideme' id='download-option-tabs'>
<ul class='e-tabXXs e-hideme' id='download-option-tabs'>
<li id='tab-download1'><a href='#core-download-download1'>".LAN_DL_DOWNLOAD_OPT_GENERAL."</a></li>
<li id='tab-download2'><a href='#core-download-download2'>".LAN_DL_DOWNLOAD_OPT_BROKEN."</a></li>
<li id='tab-download3'><a href='#core-download-download3'>".LAN_DL_DOWNLOAD_OPT_AGREE."</a></li>

View File

@@ -1134,15 +1134,17 @@ $columnInfo = array(
$text = "
<div class='admintabs' id='tab-container'>
<ul class='e-tabs' id='core-download-tabs'>
<li id='tab-general'><a href='#download-create'>".DOWLAN_175."</a></li>
<li id='tab-external'><a href='#download-edit-external'>".DOWLAN_176."</a></li>
<li id='tab-mirror'><a href='#download-edit-mirror'>".DOWLAN_128."</a></li>
<ul class='nav nav-tabs'>
<li class='active'><a data-toggle='tab' href='#download-create'>".DOWLAN_175."</a></li>
<li><a data-toggle='tab' href='#download-edit-external'>".DOWLAN_176."</a></li>
<li><a data-toggle='tab' href='#download-edit-mirror'>".DOWLAN_128."</a></li>
</ul>
<div>
<form method='post' action='".e_SELF."?".e_QUERY."' id='myform'>
<fieldset id='download-create'>
<form method='post' action='".e_SELF."?".e_QUERY."' id='myform'>
<div class='tab-content'>
<div class='tab-pane active' id='download-create'>
<table class='table adminform'>
<tr>
<td>".DOWLAN_13."</td>
@@ -1194,8 +1196,8 @@ $columnInfo = array(
</td>
</tr>
</table>
</fieldset>
<fieldset id='download-edit-external'>
</div>
<div class='tab-pane' id='download-edit-external'>
<table class='table adminform'>
<tr>
<td>".DOWLAN_149."</td>
@@ -1210,8 +1212,8 @@ $columnInfo = array(
</td>
</tr>
</table>
</fieldset>
<fieldset id='download-edit-mirror'>
</div>
<div class='tab-pane' id='download-edit-mirror'>
<table class='table adminlist'>
<tr>
<td style='width:20%'><span title='".DOWLAN_129."' style='cursor:help'>".DOWLAN_128."</span></td>
@@ -1274,7 +1276,8 @@ $columnInfo = array(
$download_author_email = $subAction != "edit" && $download_author_email == "" ? USEREMAIL : $download_author_email;
$text .= "
</table>
</fieldset>
</div>
</div>
<fieldset id='download-edit-therest'>
<table class='table adminform'>
<tr>
@@ -1457,8 +1460,9 @@ $columnInfo = array(
$text .= "
<tr style=''>
<td colspan='2' style='text-align:center'>";
</table>
<div class='buttonsbar center'>";
@@ -1471,13 +1475,13 @@ $columnInfo = array(
}
$text .= "
</td>
</tr>
</table>
</div>
</fieldset>
</form>
</div>
</div>";
";
// $ns->tablerender(ADLAN_24, $text);
echo $text;
}
@@ -1938,16 +1942,17 @@ $columnInfo = array(
);
$text = "
<div class='admintabs' id='tab-container'>
<ul class='e-tabs e-hideme' id='download-option-tabs'>
<li id='tab-download1'><a href='#core-download-download1'>".LAN_DL_DOWNLOAD_OPT_GENERAL."</a></li>
<li id='tab-download2'><a href='#core-download-download2'>".LAN_DL_DOWNLOAD_OPT_BROKEN."</a></li>
<li id='tab-download3'><a href='#core-download-download3'>".LAN_DL_DOWNLOAD_OPT_AGREE."</a></li>
<li id='tab-download4'><a href='#core-download-download4'>".LAN_DL_UPLOAD."</a></li>
<ul class='nav nav-tabs'>
<li class='active'><a data-toggle='tab' href='#core-download-download1'>".LAN_DL_DOWNLOAD_OPT_GENERAL."</a></li>
<li><a data-toggle='tab' href='#core-download-download2'>".LAN_DL_DOWNLOAD_OPT_BROKEN."</a></li>
<li><a data-toggle='tab' href='#core-download-download3'>".LAN_DL_DOWNLOAD_OPT_AGREE."</a></li>
<li><a data-toggle='tab' href='#core-download-download4'>".LAN_DL_UPLOAD."</a></li>
</ul>
<form method='post' action='".e_SELF."?".e_QUERY."'>\n
<fieldset id='core-download-download1'>
<div class='tab-content'>
<div class='tab-pane active' id='core-download-download1'>
<div>
<table class='table adminform'>
<colgroup>
@@ -2004,10 +2009,10 @@ $columnInfo = array(
</tr>
</table>
</div>
</fieldset>
<fieldset id='core-download-download2'>
</div>
<div class='tab-pane' id='core-download-download2'>
<div>
<table style='".ADMIN_WIDTH."' class='adminlist'>
<table class='table adminform'>
<colgroup>
<col style='width:30%'/>
<col style='width:70%'/>
@@ -2022,10 +2027,10 @@ $columnInfo = array(
</tr>
</table>
</div>
</fieldset>
<fieldset id='core-download-download3'>
</div>
<div class='tab-pane' id='core-download-download3'>
<div>
<table style='".ADMIN_WIDTH."' class='adminlist'>
<table class='table adminform'>
<colgroup>
<col style='width:30%'/>
<col style='width:70%'/>
@@ -2044,10 +2049,10 @@ $columnInfo = array(
</tr>
</table>
</div>
</fieldset>
<fieldset id='core-download-download4'>
</div>
<div class='tab-pane' id='core-download-download4'>
<div>
<table style='".ADMIN_WIDTH."' class='adminlist'>
<table class='table adminform'>
<colgroup>
<col style='width:30%'/>
<col style='width:70%'/>
@@ -2058,12 +2063,13 @@ $columnInfo = array(
</tr>
</table>
</div>
</fieldset>
</div>
<div class='buttons-bar center'>
<input class='button' type='submit' name='updatedownlaodoptions' value='".DOWLAN_64."'/>
</div>
</form>
</div>
</form>
";
// $ns->tablerender(LAN_DL_OPTIONS, $text);
echo $text;