1
0
mirror of https://github.com/e107inc/e107.git synced 2025-04-19 20:21:51 +02:00

content: bugfix #3622 : language in e_status

This commit is contained in:
lia 2007-03-01 09:49:57 +00:00
parent d84df4f347
commit 216e20f034
2 changed files with 8 additions and 4 deletions

View File

@ -1,12 +1,15 @@
<?php
if (!defined('e107_INIT')) { exit; }
$lan_file = $plugindir.'languages/'.e_LANGUAGE.'/lan_content_admin.php';
include_once(file_exists($lan_file) ? $lan_file : $plugindir.'languages/English/lan_content_admin.php');
$sql2 = new db;
$total = $sql -> db_Count("pcontent", "(*)", "WHERE LEFT(content_parent,1) != '0' AND content_refer != 'sa'");
if($total == 0){
$text .= "<div style='padding-bottom: 2px;'><img src='".e_PLUGIN."content/images/content_16.png' style='width: 16px; height: 16px; vertical-align: bottom' alt='' /> Content: ".$total."</div>";
$text .= "<div style='padding-bottom: 2px;'><img src='".e_PLUGIN."content/images/content_16.png' style='width: 16px; height: 16px; vertical-align: bottom' alt='' /> ".CONTENT_STATUS_LAN_1." ".$total."</div>";
}else{
$text .= "<div style='padding-bottom: 2px;'><a style='cursor: pointer; cursor: hand' onclick=\"expandit('content');\"><img src='".e_PLUGIN."content/images/content_16.png' style='width: 16px; height: 16px; vertical-align: bottom' alt='' /> Content: ".$total."</a></div>";
$text .= "<div style='padding-bottom: 2px;'><a style='cursor: pointer; cursor: hand' onclick=\"expandit('content');\"><img src='".e_PLUGIN."content/images/content_16.png' style='width: 16px; height: 16px; vertical-align: bottom' alt='' /> ".CONTENT_STATUS_LAN_1." ".$total."</a></div>";
}
$maincat = $sql -> db_Select("pcontent", "content_id, content_heading", "LEFT(content_parent,1) = '0' ORDER BY content_heading");
$text .= "<div id='content' style='display: none;'>";

View File

@ -4,8 +4,8 @@
| e107 website system - Language File.
|
| $Source: /cvs_backup/e107_0.8/e107_plugins/content/languages/English/lan_content_admin.php,v $
| $Revision: 1.5 $
| $Date: 2007-03-01 09:32:28 $
| $Revision: 1.6 $
| $Date: 2007-03-01 09:49:57 $
| $Author: lisa_ $
+----------------------------------------------------------------------------+
*/
@ -19,6 +19,7 @@ define("CONTENT_PLUGIN_LAN_5", "Content");
define("CONTENT_PLUGIN_LAN_6", "Content Management Plugin table structure updated");
define("CONTENT_LATEST_LAN_1", "Submitted Content Items:");
define("CONTENT_STATUS_LAN_1", "Submitted Content Items:");
define("CONTENT_TEMPLATE_LAN_1", "id:");
define("CONTENT_TEMPLATE_LAN_2", "author:");