mirror of
https://github.com/e107inc/e107.git
synced 2025-08-03 13:17:24 +02:00
Small interface changes to admin->comment and admin->db
This commit is contained in:
@@ -11,8 +11,8 @@
|
|||||||
| GNU General Public License (http://gnu.org).
|
| GNU General Public License (http://gnu.org).
|
||||||
|
|
|
|
||||||
| $Source: /cvs_backup/e107_0.8/e107_admin/comment.php,v $
|
| $Source: /cvs_backup/e107_0.8/e107_admin/comment.php,v $
|
||||||
| $Revision: 1.3 $
|
| $Revision: 1.4 $
|
||||||
| $Date: 2009-08-30 08:23:49 $
|
| $Date: 2009-09-02 17:27:29 $
|
||||||
| $Author: e107coders $
|
| $Author: e107coders $
|
||||||
+----------------------------------------------------------------------------+
|
+----------------------------------------------------------------------------+
|
||||||
*/
|
*/
|
||||||
@@ -85,6 +85,8 @@ class comment_manager
|
|||||||
{
|
{
|
||||||
$this->fieldpref = (varset($user_pref['admin_cpage_columns'])) ? $user_pref['admin_cpage_columns'] : array("comment_id","comment_pid","comment_item_id","comment_subject","comment_comment","comment_author","comment_datestamp");
|
$this->fieldpref = (varset($user_pref['admin_cpage_columns'])) ? $user_pref['admin_cpage_columns'] : array("comment_id","comment_pid","comment_item_id","comment_subject","comment_comment","comment_author","comment_datestamp");
|
||||||
|
|
||||||
|
//TODO Add LANS
|
||||||
|
|
||||||
$this->fields = array(
|
$this->fields = array(
|
||||||
'comment_id' => array('title'=> ID, 'width'=>'5%', 'forced'=> TRUE),
|
'comment_id' => array('title'=> ID, 'width'=>'5%', 'forced'=> TRUE),
|
||||||
'comment_item_id' => array('title'=> "item id", 'type' => 'text', 'width' => 'auto'),
|
'comment_item_id' => array('title'=> "item id", 'type' => 'text', 'width' => 'auto'),
|
||||||
@@ -112,8 +114,7 @@ class comment_manager
|
|||||||
{
|
{
|
||||||
global $pref;
|
global $pref;
|
||||||
$sql = e107::getDb();
|
$sql = e107::getDb();
|
||||||
require_once(e_HANDLER."form_handler.php");
|
$frm = e107::getSingleton('e_form');
|
||||||
$frm = new e_form(true);
|
|
||||||
|
|
||||||
$sql -> db_Select("comments", "*");
|
$sql -> db_Select("comments", "*");
|
||||||
|
|
||||||
|
@@ -9,8 +9,8 @@
|
|||||||
* Administration - Database Utilities
|
* Administration - Database Utilities
|
||||||
*
|
*
|
||||||
* $Source: /cvs_backup/e107_0.8/e107_admin/db.php,v $
|
* $Source: /cvs_backup/e107_0.8/e107_admin/db.php,v $
|
||||||
* $Revision: 1.26 $
|
* $Revision: 1.27 $
|
||||||
* $Date: 2009-08-31 13:12:03 $
|
* $Date: 2009-09-02 17:27:29 $
|
||||||
* $Author: e107coders $
|
* $Author: e107coders $
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
@@ -337,7 +337,7 @@ class system_tools
|
|||||||
{
|
{
|
||||||
|
|
||||||
$frm = e107::getSingleton('e_form');
|
$frm = e107::getSingleton('e_form');
|
||||||
|
//TODO LANs
|
||||||
|
|
||||||
$text = "<form method='post' action='".e_SELF."' id='core-db-export-form'>
|
$text = "<form method='post' action='".e_SELF."' id='core-db-export-form'>
|
||||||
<fieldset id='core-db-export'>
|
<fieldset id='core-db-export'>
|
||||||
@@ -350,7 +350,7 @@ class system_tools
|
|||||||
</colgroup>
|
</colgroup>
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th>Name</th>
|
<th>".$frm->checkbox_toggle('check-all-verify', 'xml_prefs')." Preferences</th>
|
||||||
<th class='right'>Rows</th>
|
<th class='right'>Rows</th>
|
||||||
|
|
||||||
</tr>
|
</tr>
|
||||||
@@ -375,6 +375,23 @@ class system_tools
|
|||||||
</tr>";
|
</tr>";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
$text .= "</tbody>
|
||||||
|
</table>
|
||||||
|
<table cellpadding='0' cellspacing='0' class='adminlist'>
|
||||||
|
|
||||||
|
<colgroup span='2'>
|
||||||
|
|
||||||
|
<col style='width: 80%'></col>
|
||||||
|
<col style='width: 20%'></col>
|
||||||
|
</colgroup>
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th>".$frm->checkbox_toggle('check-all-verify', 'xml_tables')."Tables</th>
|
||||||
|
<th class='right'>Rows</th>
|
||||||
|
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>\n";
|
||||||
|
|
||||||
$tables = table_list();
|
$tables = table_list();
|
||||||
|
|
||||||
@@ -389,8 +406,31 @@ class system_tools
|
|||||||
}
|
}
|
||||||
|
|
||||||
$text .="
|
$text .="
|
||||||
|
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
|
<table cellpadding='0' cellspacing='0' class='adminlist'>
|
||||||
|
<colgroup span='2'>
|
||||||
|
|
||||||
|
<col style='width: 80%'></col>
|
||||||
|
<col style='width: 20%'></col>
|
||||||
|
</colgroup>
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th colspan='2'>".LAN_OPTIONS."</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
<tr>
|
||||||
|
<td colspan='2'>
|
||||||
|
".$frm->checkbox("package_images",'package_images')." Convert Image-paths and package images.
|
||||||
|
Destination Path: <input type='text' name='package_path' value='' /> (not functional)
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
|
||||||
<div class='buttons-bar center'>
|
<div class='buttons-bar center'>
|
||||||
".$frm->admin_button('exportXmlFile', "Export File", 'exportXmlFile')."
|
".$frm->admin_button('exportXmlFile', "Export File", 'exportXmlFile')."
|
||||||
</div>
|
</div>
|
||||||
@@ -662,7 +702,16 @@ function db_adminmenu()
|
|||||||
|
|
||||||
function exportXmlFile($prefs,$tables,$debug=FALSE)
|
function exportXmlFile($prefs,$tables,$debug=FALSE)
|
||||||
{
|
{
|
||||||
e107::getSingleton('xmlClass')->e107Export($prefs,$tables,FALSE);
|
$xml = e107::getSingleton('xmlClass');
|
||||||
|
|
||||||
|
if(vartrue($_POST['package_images']) && vartrue($_POST['package_path']))
|
||||||
|
{
|
||||||
|
// TODO Conversion of Image paths - in xml-class and e_parse_class?
|
||||||
|
// $xml->convertImagePaths = TRUE;
|
||||||
|
// $xml->destinationPath = $_POST['package_path'];
|
||||||
|
}
|
||||||
|
|
||||||
|
$xml->e107Export($prefs,$tables,FALSE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user