mirror of
https://github.com/e107inc/e107.git
synced 2025-08-04 13:47:31 +02:00
Theme and Plugin Manager Searches.
This commit is contained in:
@@ -348,7 +348,7 @@ class pluginManager{
|
|||||||
|
|
||||||
$text = "
|
$text = "
|
||||||
<form action='".e_SELF."?".e_QUERY."' id='core-plugin-list-form' method='get'>
|
<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>
|
||||||
|
|
||||||
<form action='".e_SELF."?".e_QUERY."' id='core-plugin-list-form' method='post'>
|
<form action='".e_SELF."?".e_QUERY."' id='core-plugin-list-form' method='post'>
|
||||||
|
@@ -48,7 +48,7 @@ e107::css("inline","
|
|||||||
|
|
||||||
.admin-theme-select-active { background-color:red;float:left }
|
.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 }
|
.admin-theme-cell-default { border:1px dotted silver; background-color:#DDDDDD }
|
||||||
|
|
||||||
|
@@ -418,10 +418,10 @@ class themeHandler
|
|||||||
$mes = e107::getMessage();
|
$mes = e107::getMessage();
|
||||||
$ns = e107::getRender();
|
$ns = e107::getRender();
|
||||||
$tp = e107::getParser();
|
$tp = e107::getParser();
|
||||||
|
$frm = e107::getForm();
|
||||||
|
$srch = preg_replace('/[^\w]/','', vartrue($_GET['srch']));
|
||||||
|
|
||||||
echo "<div>
|
echo "<div>";
|
||||||
<form enctype='multipart/form-data' method='post' action='".e_SELF."?".$mode."'>\n";
|
|
||||||
|
|
||||||
|
|
||||||
if($mode == "main" || !$mode) // Show Main Configuration
|
if($mode == "main" || !$mode) // Show Main Configuration
|
||||||
{
|
{
|
||||||
@@ -432,7 +432,7 @@ class themeHandler
|
|||||||
$text = $this->renderTheme(1, $theme);
|
$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);
|
$ns->tablerender(TPVLAN_26.SEP.TPVLAN_33, $mes->render().$text);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -447,6 +447,7 @@ class themeHandler
|
|||||||
$text = $this->renderTheme(2, $theme);
|
$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);
|
$ns->tablerender(TPVLAN_26.SEP.TPVLAN_34, $mes->render().$text);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -459,6 +460,7 @@ class themeHandler
|
|||||||
// Show All Themes
|
// Show All Themes
|
||||||
if($mode == "choose")
|
if($mode == "choose")
|
||||||
{
|
{
|
||||||
|
|
||||||
$text = "";
|
$text = "";
|
||||||
foreach ($this->themeArray as $key=>$theme)
|
foreach ($this->themeArray as $key=>$theme)
|
||||||
{
|
{
|
||||||
@@ -466,6 +468,7 @@ class themeHandler
|
|||||||
// print_a($theme);
|
// print_a($theme);
|
||||||
}
|
}
|
||||||
$text .= "<div class='clear'> </div>";
|
$text .= "<div class='clear'> </div>";
|
||||||
|
echo "<form enctype='multipart/form-data' method='post' action='".e_SELF."?".$mode."'>\n";
|
||||||
$ns->tablerender(TPVLAN_26.SEP.TPVLAN_39, $mes->render().$text);
|
$ns->tablerender(TPVLAN_26.SEP.TPVLAN_39, $mes->render().$text);
|
||||||
|
|
||||||
|
|
||||||
@@ -483,20 +486,26 @@ class themeHandler
|
|||||||
$from = intval(varset($_GET['frm']));
|
$from = intval(varset($_GET['frm']));
|
||||||
|
|
||||||
// $file = SITEURLBASE.e_PLUGIN_ABS."release/release.php"; // temporary testing
|
// $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
|
$xml->setOptArrayTags('theme,screenshots/image'); // make sure 'theme' tag always returns an array
|
||||||
// $xdata = $xml->loadXMLfile($file,'advanced',true);
|
// $xdata = $xml->loadXMLfile($file,'advanced',true);
|
||||||
$xdata = $xml->loadXMLfile($file,true,false);
|
$xdata = $xml->loadXMLfile($file,true,false);
|
||||||
$total = $xdata['@attributes']['total'];
|
$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);
|
// print_a($xdata);
|
||||||
//TODO use admin_ui including filter capabilities by sending search queries back to the xml script.
|
//TODO use admin_ui including filter capabilities by sending search queries back to the xml script.
|
||||||
|
|
||||||
// XML data array.
|
// XML data array.
|
||||||
$c = 1;
|
$c = 1;
|
||||||
$text = "";
|
|
||||||
foreach($xdata['theme'] as $r)
|
foreach($xdata['theme'] as $r)
|
||||||
{
|
{
|
||||||
if(E107_DBG_PATH)
|
if(E107_DBG_PATH)
|
||||||
|
@@ -180,7 +180,8 @@ img.S32:hover {}
|
|||||||
.adminlist .col-selection-cont { position: relative; float:right; }
|
.adminlist .col-selection-cont { position: relative; float:right; }
|
||||||
|
|
||||||
div.e-search input[type='text'] { padding-left:25px }
|
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 */
|
/******** SyS Messages / Message text formatting */
|
||||||
|
|
||||||
.s-message .s-message-title { height: 32px; background: 0 50% no-repeat; padding-left: 42px; line-height: 32px; }
|
.s-message .s-message-title { height: 32px; background: 0 50% no-repeat; padding-left: 42px; line-height: 32px; }
|
||||||
|
Reference in New Issue
Block a user