1
0
mirror of https://github.com/e107inc/e107.git synced 2025-01-29 10:38:08 +01:00

Theme and Plugin Manager Searches.

This commit is contained in:
Cameron 2013-03-04 00:47:56 -08:00
parent 42c770ed4e
commit 94a1235c0c
4 changed files with 20 additions and 10 deletions

View File

@ -348,7 +348,7 @@ class pluginManager{
$text = "
<form action='".e_SELF."?".e_QUERY."' id='core-plugin-list-form' method='get'>
<div>".$frm->search('srch', $srch, 'go', $filterName, $filterArray, $filterVal).$frm->hidden('mode','online')."</div>
<div class='e-search'>".$frm->search('srch', $srch, 'go', $filterName, $filterArray, $filterVal).$frm->hidden('mode','online')."</div>
</form>
<form action='".e_SELF."?".e_QUERY."' id='core-plugin-list-form' method='post'>

View File

@ -48,7 +48,7 @@ e107::css("inline","
.admin-theme-select-active { background-color:red;float:left }
.admin-theme-cell { width:202px; height:160px; padding:10px; -moz-border-radius: 5px; border-radius: 5px; margin:5px}
.admin-theme-cell { width:202px; height:160px; padding:10px; -moz-border-radius: 5px; border-radius: 5px; margin:10px 10px 5px 0px}
.admin-theme-cell-default { border:1px dotted silver; background-color:#DDDDDD }

View File

@ -418,10 +418,10 @@ class themeHandler
$mes = e107::getMessage();
$ns = e107::getRender();
$tp = e107::getParser();
$frm = e107::getForm();
$srch = preg_replace('/[^\w]/','', vartrue($_GET['srch']));
echo "<div>
<form enctype='multipart/form-data' method='post' action='".e_SELF."?".$mode."'>\n";
echo "<div>";
if($mode == "main" || !$mode) // Show Main Configuration
{
@ -432,7 +432,7 @@ class themeHandler
$text = $this->renderTheme(1, $theme);
}
}
echo "<form enctype='multipart/form-data' method='post' action='".e_SELF."?".$mode."'>\n";
$ns->tablerender(TPVLAN_26.SEP.TPVLAN_33, $mes->render().$text);
}
@ -447,6 +447,7 @@ class themeHandler
$text = $this->renderTheme(2, $theme);
}
}
echo "<form enctype='multipart/form-data' method='post' action='".e_SELF."?".$mode."'>\n";
$ns->tablerender(TPVLAN_26.SEP.TPVLAN_34, $mes->render().$text);
}
@ -458,7 +459,8 @@ class themeHandler
// Show All Themes
if($mode == "choose")
{
{
$text = "";
foreach ($this->themeArray as $key=>$theme)
{
@ -466,6 +468,7 @@ class themeHandler
// print_a($theme);
}
$text .= "<div class='clear'>&nbsp;</div>";
echo "<form enctype='multipart/form-data' method='post' action='".e_SELF."?".$mode."'>\n";
$ns->tablerender(TPVLAN_26.SEP.TPVLAN_39, $mes->render().$text);
@ -483,12 +486,18 @@ class themeHandler
$from = intval(varset($_GET['frm']));
// $file = SITEURLBASE.e_PLUGIN_ABS."release/release.php"; // temporary testing
$file = "http://e107.org/feed?type=theme&frm=".$from;
$file = "http://e107.org/feed?type=theme&frm=".$from."&srch=".$srch;
$xml->setOptArrayTags('theme,screenshots/image'); // make sure 'theme' tag always returns an array
// $xdata = $xml->loadXMLfile($file,'advanced',true);
$xdata = $xml->loadXMLfile($file,true,false);
$total = $xdata['@attributes']['total'];
$text = "
<form action='".e_SELF."?".e_QUERY."' id='core-plugin-list-form' method='get'>
<div class='e-search'>".$frm->search('srch', $srch, 'go', $filterName, $filterArray, $filterVal).$frm->hidden('mode','online')."</div>
</form>";
// print_a($xdata);
@ -496,7 +505,7 @@ class themeHandler
// XML data array.
$c = 1;
$text = "";
foreach($xdata['theme'] as $r)
{
if(E107_DBG_PATH)

View File

@ -180,7 +180,8 @@ img.S32:hover {}
.adminlist .col-selection-cont { position: relative; float:right; }
div.e-search input[type='text'] { padding-left:25px }
div.e-search i { margin-right:-20px; margin-left:5px; z-index:100; position:relative; }
div.e-search i { margin-right:-20px; margin-left:5px; margin-top:0px; z-index:100; position:relative; }
div.e-search { margin-bottom:-5px; margin-top:10px }
/******** SyS Messages / Message text formatting */
.s-message .s-message-title { height: 32px; background: 0 50% no-repeat; padding-left: 42px; line-height: 32px; }