Author: lesabotsy
Date: Thu Jun 7 13:18:27 2007
New Revision: 527
URL: http://svn.gna.org/viewcvs/phplinker?rev=527&view=rev
Log:
# 240
POur que hari puisse corriger son bug
Modified:
trunk/smarty/default/templates/admin/moderator.tpl
trunk/www/admin/moderator.php
Modified: trunk/smarty/default/templates/admin/moderator.tpl
URL:
http://svn.gna.org/viewcvs/phplinker/trunk/smarty/default/templates/admin/moderator.tpl?rev=527&r1=526&r2=527&view=diff
==============================================================================
--- trunk/smarty/default/templates/admin/moderator.tpl (original)
+++ trunk/smarty/default/templates/admin/moderator.tpl Thu Jun 7 13:18:27 2007
@@ -12,7 +12,7 @@
</style>
{/literal}
{if $res == 0}
-<div align="center"><b><h3><p> </p><p> </p><p> </p>Aucun site
en attente de modération</h3></b></div>
+<div align="center"><b><h3><p> </p><p> </p><p> </p>Aucun site
en attente de modération</h3></b></div>
{else}
{if $result_for_all == ""}
<form action='' method="get">
@@ -31,7 +31,9 @@
{$myData[run_increment]}
{/section}
<tr align="left" >
- <td colspan="2"></td>
+ <td colspan="2"><form><input type="hidden" value="cocher" name="tout">
+<input type="submit"{if $tout=="cocher"} value ="Tout decocher" {else} value
="Tout cocher" {/if} name="vrt">
+<input type="hidden" value="{$order}" name="order"></form></td>
<td colspan="2"></td>
<td colspan="2" align="center"></td>
<input type="hidden" value="{$order}" name="order">
@@ -60,7 +62,7 @@
<option value="45" {if $setPerPage==45}"selected=selected"{/if}>45</option>
<option value="50" {if $setPerPage==50}"selected=selected"{/if}>50</option>
</select> par page
-<input type="hidden" value="{$order}" name="order">
+<input type="hidden" value="{$order}" name="order"><input type="hidden"
value="{$chek}" name="chek"><input type="hidden" value="{$tout}" name="tout">
</form>
</div>
Modified: trunk/www/admin/moderator.php
URL:
http://svn.gna.org/viewcvs/phplinker/trunk/www/admin/moderator.php?rev=527&r1=526&r2=527&view=diff
==============================================================================
--- trunk/www/admin/moderator.php (original)
+++ trunk/www/admin/moderator.php Thu Jun 7 13:18:27 2007
@@ -34,7 +34,14 @@
$setPerPage="";
$pPage="";
$order="";
+$tout = "";
$page_next="";
+$chek ="";
+if(isset($_GET['vrt'])){
+ $vrt = $_GET['vrt'];
+ }else{
+ $vrt = "";
+ }
if(isset( $_GET['setPerPage'] ) ) {
$setPerPage = $_GET['setPerPage'];
@@ -46,6 +53,20 @@
$order = $_GET['order'];
}else{
$order = "";
+ }
+
+if(isset($_GET['todo'])){
+ $todo = $_GET['todo'];
+ }else{
+ $todo = "";
+ }
+
+
+
+if(isset($_GET['tout'])){
+ $tout = $_GET['tout'];
+ }else{
+ $tout = "";
}
if(isset($_GET['page_next'])){
@@ -89,13 +110,13 @@
}
if(isset($_GET['mod']) && $_GET['mod']!="" ){
-if(($action == "update") && isset($action) && isset($_GET['mod']) &&
$_GET['mod']!="Array" && $_GET["todo"]=="Accepter"){
+if(($action == "update") && isset($action) && isset($_GET['mod']) &&
$_GET['mod']!="Array" && $todo=="Accepter"){
foreach($_GET['mod'] as $value){
$update = sql_query('die',__FILE__,__LINE__,__FUNCTION__,"UPDATE url SET
state = 'moderated' WHERE url.id=".$value);
}
$sms = "ok";
}
-if(($action == "update") && isset($action) && isset($_GET['mod']) &&
$_GET['mod']!="Array" && $_GET["todo"]=="Refuser"){
+if(($action == "update") && isset($action) && isset($_GET['mod']) &&
$_GET['mod']!="Array" && $todo=="Refuser"){
foreach($_GET['mod'] as $value){
$qry_get_idwebmaster = "SELECT id_webmaster FROM url WHERE url.id =
".$value;
$qry_get_idwebmaster =
sql_query('die',__FILE__,__LINE__,__FUNCTION__,$qry_get_idwebmaster);
@@ -173,9 +194,17 @@
}else{
$visible="NON";
}
+ if($tout == "cocher"){
+ $chek = "checked";
+ }
+
+ if($vrt == "Tout decocher"){
+ $chek = "";
+ $tout ="";
+ }
$myData[] = "
$tr
- <td colspan=\"2\"><span><input type='checkbox' name='mod[]'
value='$id'></span></td>
+ <td colspan=\"2\"><span><input type='checkbox' name='mod[]' value='$id'
$chek ></span></td>
<td colspan=\"2\"><span><a href=\"$url\"
target=\"blank\">$url</a></span></td>
<td colspan=\"2\"><span>$login</span></td>
<td colspan=\"2\"><span>$court</span></td>
@@ -241,5 +270,7 @@
linker_tpl("pPage" , $pPage);
linker_tpl("link_url" , $link_url);
linker_tpl("link_date" , $link_date);
+ linker_tpl("tout" , $tout);
+ linker_tpl("chek" , $chek);
require("includes/footer.php");
?>
_______________________________________________
PHPLinker-commits mailing list
[email protected]
https://mail.gna.org/listinfo/phplinker-commits