[Uludag-commits] r6692 - in trunk/pardon: . etc/themes/pardul

svn-uludag at uludag.org.tr svn-uludag at uludag.org.tr
26 Mar 2006 Paz 13:58:12 EEST


Author: gokmen.goksel
Date: Sun Mar 26 13:57:32 2006
New Revision: 6692

Modified:
   trunk/pardon/etc/themes/pardul/approve.html
   trunk/pardon/etc/themes/pardul/queue.html
   trunk/pardon/index.php
Log:
onaylarken de düzenleee...

Modified: trunk/pardon/etc/themes/pardul/approve.html
=================================================================
--- trunk/pardon/etc/themes/pardul/approve.html	(original)
+++ trunk/pardon/etc/themes/pardul/approve.html	Sun Mar 26 13:57:32 2006
@@ -3,7 +3,7 @@
    {if $message}<div id="warn">{$message}</div>{else}
                 <script src="lib/scripts/newhardware.js"></script>
                 <div id="head">Donanım Düzenle</div>
-                <form id="frm" action="{$pardul_url}?edit_f" method="post">
+                <form id="frm" action="{$pardul_url}?{if $admin}queue_edit_f{else}edit_f{/if}" method="post">
                 <input type="hidden" name="userid" value="{$UserID}">
                 <input type="hidden" name="p_id" value="{$sr[0].ID}">
                 <table class="regtable">
@@ -71,7 +71,8 @@
                 <table class="regtable">
                     <tr>
                         <td align="right">
-                            <input onclick="return submitform();" value="Güncelle" name="register" type="submit" style="width:150px">
+                            <input onclick="return submitform();" value="{if $admin}Onayla{else}Güncelle{/if}" name="register" type="submit" style="width:150px">
+                            {if $admin}<a href="?queue&del={$sr[node].ID}"><img src="{$tp}/images/remove.png"> Sil </a>{/if}
                         </td>
                     </tr>
                 </table>

Modified: trunk/pardon/etc/themes/pardul/queue.html
=================================================================
--- trunk/pardon/etc/themes/pardul/queue.html	(original)
+++ trunk/pardon/etc/themes/pardul/queue.html	Sun Mar 26 13:57:32 2006
@@ -5,18 +5,18 @@
                 <table class="restable">
                     <tbody>
                         <tr>
-                            <th width="20%"> Gönderen </th>
-                            <th width="15%"> Marka </th>
                             <th width="15%"> Model </th>
+                            <th width="15%"> Üretici </th>
+                            <th width="20%"> Gönderen </th>
                             <th width="20%"> Kategori </th>
                             <th width="5%"> Durum </th>
                             <th width="10%" alt="Onayla / Reddet"> O / R </th>
                         </tr>
                         {section name=node loop=$sr}
                         <tr {if $smarty.section.node.index % 2} style="background:#EEE" {/if}>
-                            <td> {$sr[node].UserName}</td>
+                            <td> <a href="?queue_edit={$sr[node].ID}">{$sr[node].HWProductName}</a> </td>
                             <td> {$sr[node].HWVendor} </td>
-                            <td> {$sr[node].HWProductName} </td>
+                            <td> {$sr[node].UserName}</td>
                             <td> {section name=mode loop=$p_scat}{if $sr[node].HWCategoryID == $p_scat[mode].ID}{$p_scat[mode].CategoryName}{/if}{/section}</td>
                             <td align="center"> <img src="{$tp}/images/{if $sr[node].HWState >= 1}ok{else}not{/if}.png"></td>
                             <td align="center">

Modified: trunk/pardon/index.php
=================================================================
--- trunk/pardon/index.php	(original)
+++ trunk/pardon/index.php	Sun Mar 26 13:57:32 2006
@@ -127,6 +127,24 @@
                     $smarty->display("queue.html");
                     die();
                     break;
+                case "queue_edit":
+                    ssv("admin",TRUE);
+                    ssv("sr",get_($_GET["queue_edit"],"Hardwares"));
+                    ssv("rs",get_states($_GET["queue_edit"]));
+                    $smarty->display("approve.html");
+                    die();
+                    break;
+                case "queue_edit_f":
+                    if ($_POST["p_name"]<>""&&$_POST["p_vendor"]<>""&&$_POST["p_category"]<>""&&$_POST["p_distro"]<>""&&$_POST["p_id"]<>"") {
+                        if (make_hardware($_POST["p_id"],$_POST["p_name"],$_POST["p_vendor"],$_POST["p_device_id"],$_POST["p_bus_type"],$_POST["p_category"],$_POST["p_date"],'0',$_POST["userid"],"",$_POST["p_distro"],$_POST["p_state"],$_POST["p_todo"])){ activate_($_POST["p_id"]); header ("location: ?queue");}
+                        else ssv("message",ERROR.MAINLINK);
+                    }
+                    else {
+                        ssv("message",MISSING_FIELDS);
+                    }
+                    $smarty->display("aprrove.html");
+                    die();
+                    break;
                 case "users":
                     if (isset($_GET["del"])) del_($_GET["users"],"Users");
                     if (isset($_GET["set"])) set_($_GET["users"],$_GET["set"]);


Uludag-commits mesaj listesiyle ilgili daha fazla bilgi