| 1 | <?php |
|---|
| 2 | Â Â Â Â /* |
|---|
| 3 | Â Â Â Â Â *Â WebFax - The Web frontend for HylaFAX. |
|---|
| 4 | Â Â Â Â Â * |
|---|
| 5 | Â Â Â Â Â *Â (C) 2006Â Enver ALTINÂ <ealtin@parkyeri.com> |
|---|
| 6 | Â Â Â Â Â *Â (C) 2003Â FrontSITE A.S. [http://www.frontsite.com.tr] |
|---|
| 7 | Â Â Â Â Â * |
|---|
| 8 | Â Â Â Â Â *Â This program is free software; you can redistribute it and/or modify |
|---|
| 9 | Â Â Â Â Â *Â it under the terms of the GNU General Public License as published by |
|---|
| 10 | Â Â Â Â Â *Â the Free Software Foundation; either version 2 of the License, or |
|---|
| 11 | Â Â Â Â Â *Â (at your option) any later version. |
|---|
| 12 | Â Â Â Â Â * |
|---|
| 13 | Â Â Â Â Â *Â This program is distributed in the hope that it will be useful, |
|---|
| 14 | Â Â Â Â Â *Â but WITHOUT ANY WARRANTY; without even the implied warranty of |
|---|
| 15 |      * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|---|
| 16 | Â Â Â Â Â *Â GNU Library General Public License for more details. |
|---|
| 17 | Â Â Â Â Â * |
|---|
| 18 | Â Â Â Â Â *Â You should have received a copy of the GNU General Public License |
|---|
| 19 | Â Â Â Â Â *Â along with this program; if not, write to the Free Software |
|---|
| 20 | Â Â Â Â Â *Â Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
|---|
| 21 | Â Â Â Â Â */ |
|---|
| 22 | |
|---|
| 23 | Â Â Â Â require_once("toolbtns.php"); |
|---|
| 24 | Â Â Â Â require_once("calendar.php"); |
|---|
| 25 | |
|---|
| 26 |     function now() { |
|---|
| 27 |         return date("r"); |
|---|
| 28 | Â Â Â Â } |
|---|
| 29 | |
|---|
| 30 |     function formattimestamp($stamp) { |
|---|
| 31 |         return date("H:i - d.m.Y", strtotime(substr($stamp, 1, 15))); |
|---|
| 32 | Â Â Â Â } |
|---|
| 33 | |
|---|
| 34 |     function formattimestamptotimeonly($stamp) { |
|---|
| 35 |         return date("H:i", strtotime(substr($stamp, 1, 15))); |
|---|
| 36 | Â Â Â Â } |
|---|
| 37 | |
|---|
| 38 |     function checkperm($perm1, $perm2) { |
|---|
| 39 |         return ($perm1 & $perm2)==$perm2; |
|---|
| 40 | Â Â Â Â } |
|---|
| 41 | |
|---|
| 42 |     function userperm($perm=PERM_NONE) { |
|---|
| 43 |         if (session_is_registered("userid")) { |
|---|
| 44 |             global $userinfo; |
|---|
| 45 | Â Â Â Â Â Â Â Â Â Â Â Â getuserinfo(); |
|---|
| 46 |             return checkperm($userinfo->permission, $perm); |
|---|
| 47 |         } else return FALSE; |
|---|
| 48 | Â Â Â Â } |
|---|
| 49 | |
|---|
| 50 |     function getuserinfo() { |
|---|
| 51 |         global $db, $userinfo, $_SESSION; |
|---|
| 52 |         if (!isset($userinfo) && session_is_registered("userid")) // Avoiding duplicate SQL queries so calling the function twice is pretty safe. |
|---|
| 53 |             $userinfo=db_getuserinfo($db, $_SESSION["userid"]); |
|---|
| 54 | Â Â Â Â } |
|---|
| 55 | |
|---|
| 56 |     function _get($str) { |
|---|
| 57 |         return (isset($_GET[$str])?$_GET[$str]:""); |
|---|
| 58 | Â Â Â Â } |
|---|
| 59 | |
|---|
| 60 |     function _post($str) { |
|---|
| 61 |         return (isset($_POST[$str])?$_POST[$str]:""); |
|---|
| 62 | Â Â Â Â } |
|---|
| 63 | |
|---|
| 64 |     function toolbtn($btnname, $active=FALSE, $params=FALSE) { |
|---|
| 65 |         global $buttons; |
|---|
| 66 | Â Â Â Â Â Â Â Â $tb=$buttons[$btnname]; |
|---|
| 67 | Â Â Â Â Â Â Â Â $classsuffix=($active?"active":""); |
|---|
| 68 |         if ($tb[1]=="") $classsuffix.="icon"; |
|---|
| 69 | Â Â Â Â Â Â Â Â $imgsuffix=($tb[1]==""?"icon":""); |
|---|
| 70 |         echo '<td class=toolbtn><a class=toolbtn'.$classsuffix.' href="'.sprintf($tb[3], $params).'" title="'.$tb[2].'"><img class=toolbtn'.$imgsuffix.' src="img/icons/'.$tb[0].'.png">'.$tb[1].'</a></td>'; |
|---|
| 71 | Â Â Â Â } |
|---|
| 72 | |
|---|
| 73 |     function gen_code($size=20) { |
|---|
| 74 | Â Â Â Â Â Â Â Â $r=""; |
|---|
| 75 |         for ($i=0; $i<$size; $i++) $r.=chr(rand(65, 90)); |
|---|
| 76 |         return $r; |
|---|
| 77 | Â Â Â Â } |
|---|
| 78 | |
|---|
| 79 |     function getfile_httpheaders($filename, $filesize) { |
|---|
| 80 | Â Â Â Â Â Â Â Â // application/octet-stream |
|---|
| 81 | Â Â Â Â Â Â Â Â // application/pdf |
|---|
| 82 | Â Â Â Â Â Â Â Â // image/jpeg |
|---|
| 83 | Â Â Â Â Â Â Â Â header("Content-Type: application/pdf"); |
|---|
| 84 | Â Â Â Â Â Â Â Â // inline or attachment |
|---|
| 85 | Â Â Â Â Â Â Â Â header("Content-Disposition: attachment; filename=\"$filename\""); |
|---|
| 86 | Â Â Â Â Â Â Â Â header("Content-Length: $filesize"); |
|---|
| 87 | Â Â Â Â Â Â Â Â # header("Cache-Control: no-cache, must-revalidate"); |
|---|
| 88 | Â Â Â Â Â Â Â Â # header("Pragma: no-cache"); |
|---|
| 89 | Â Â Â Â Â Â Â Â header("Cache-Control: private"); |
|---|
| 90 | Â Â Â Â } |
|---|
| 91 | |
|---|
| 92 |     function convertjobtojpegandgettmpfileidlist($db, $jobid) { |
|---|
| 93 |         $jf=db_getfaxjobfiles($db, $jobid); |
|---|
| 94 |         while ($f=$jf->fetchRow()) { |
|---|
| 95 |             if (!is_dir(FAX_TMPCONVQ."/file".$f->id)) |
|---|
| 96 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â mkdir(FAX_TMPCONVQ."/file".$f->id); |
|---|
| 97 | Â Â Â Â Â Â Â Â Â Â Â Â system(PRG_GS." -r".FAX_PREVIEW_DPI." -sDEVICE=jpeg -sOutputFile=".FAX_TMPCONVQ."/file".$f->id."/page%04d.jpg -dNOPAUSE -dBATCH -q ".$f->filename." 1>/dev/null 2>&1"); |
|---|
| 98 | Â Â Â Â Â Â Â Â Â Â Â Â $dir=opendir(FAX_TMPCONVQ."/file".$f->id); |
|---|
| 99 |             while (FALSE!==($file=readdir($dir))) |
|---|
| 100 |                 if ($file!="." && $file!="..") |
|---|
| 101 |                     $r[]=db_addtempconvfile($db, FAX_TMPCONVQ."/file".$f->id."/$file"); |
|---|
| 102 | Â Â Â Â Â Â Â Â } |
|---|
| 103 |         if (isset($r)) return $r; |
|---|
| 104 | Â Â Â Â } |
|---|
| 105 | |
|---|
| 106 |     function ps2pdfconvertandreadfile($filename) { |
|---|
| 107 |         system(PRG_PS2PDF." $filename $filename.faxtemp"); |
|---|
| 108 | Â Â Â Â Â Â Â Â readfile("$filename.faxtemp"); |
|---|
| 109 | Â Â Â Â Â Â Â Â unlink("$filename.faxtemp"); |
|---|
| 110 | Â Â Â Â } |
|---|
| 111 | |
|---|
| 112 |     function addblockheader($label) { |
|---|
| 113 |         echo "<tr><td class=blhead>$label</td><td></td></tr>"; |
|---|
| 114 | Â Â Â Â } |
|---|
| 115 | |
|---|
| 116 |     function addseperator() { |
|---|
| 117 | Â Â Â Â Â Â Â Â ?><tr><td colspan=2 class=sep></td></tr><? |
|---|
| 118 | Â Â Â Â } |
|---|
| 119 | |
|---|
| 120 |     function addinput($type, $name, $value="", $label="", $size=0, $max=0, $class="", $rows=8) { |
|---|
| 121 |         switch ($type) { |
|---|
| 122 |             case 'hidden': |
|---|
| 123 |                 echo "<input type=$type name=$name value=\"$value\">"; |
|---|
| 124 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â break; |
|---|
| 125 |             case 'radio': |
|---|
| 126 |                 echo "<tr><td class=l>$label</td><td class=i>"; |
|---|
| 127 |                 foreach($value as $x) |
|---|
| 128 |                     echo "<label><input class=\"$class\" type=$type name=$name value=\"".$x[0]."\" ".($x[2]?'checked':'').">".$x[1]."</label>"; |
|---|
| 129 |                 echo "</td></tr>"; |
|---|
| 130 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â break; |
|---|
| 131 |             case 'label': |
|---|
| 132 |                 echo "<tr><td class=l>$label</td><td class=i>$value</td>"; |
|---|
| 133 |                 if ($name!="") echo "<input type=hidden name=$name value=\"$value\">"; |
|---|
| 134 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â break; |
|---|
| 135 |             case 'memo': |
|---|
| 136 |                 echo "<tr><td class=l>$label</td><td class=i><textarea name=$name class=$class cols=$size rows=$rows maxlength=$max>$value</textarea></td></tr>"; |
|---|
| 137 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â break; |
|---|
| 138 |             case 'check': |
|---|
| 139 |                 echo "<tr><td class=l>$label</td><td class=i>"; |
|---|
| 140 |                 foreach($name as $i) |
|---|
| 141 |                     echo "<label><input type=checkbox value=".$i[2]." name=".$i[1].($i[3]?" checked":"").">".$i[0]."</label><br>"; |
|---|
| 142 |                 echo "</td></tr>"; |
|---|
| 143 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â break; |
|---|
| 144 |             case 'select': |
|---|
| 145 |                 echo "<tr><td class=l>$label</td><td class=i><select class=\"$class\" name=$name>"; |
|---|
| 146 |                 foreach($value as $i) |
|---|
| 147 |                     echo "<option value=".$i[0].($i[2]?" selected":"").">".$i[1]; |
|---|
| 148 |                 echo "</select></td></tr>"; |
|---|
| 149 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â break; |
|---|
| 150 |             case 'file': |
|---|
| 151 |                 echo "<tr><td class=l>$label</td><td class=i><input class=$class type=file accept=\"ps,pdf\" name=$name size=$size></td></tr>"; |
|---|
| 152 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â break; |
|---|
| 153 |             case 'link': |
|---|
| 154 |                 echo "<tr><td class=l>$label</td><td class=i><a href=\"$value\">$name</a></td></tr>"; |
|---|
| 155 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â break; |
|---|
| 156 | Â Â Â Â Â Â Â Â Â Â Â Â default: |
|---|
| 157 |                 if (!is_array($name)) { |
|---|
| 158 |                     echo "<tr><td class=l>$label</td><td class=i><input class=$class type=$type name=$name size=$size maxlength=$max".($value!=""?" value=\"$value\"":"")."></td></tr>"; |
|---|
| 159 |                 } else { |
|---|
| 160 |                     echo "<tr><td class=l>$label</td><td class=i>"; |
|---|
| 161 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â for($i=0;$i<count($name);$i++) |
|---|
| 162 |                         echo "<input class=$class type=$type name=".$name[$i]." value=\"".$value[$i]."\" size=".$size[$i]." maxlength=".$max[$i].">"; |
|---|
| 163 |                     echo "</td></tr>"; |
|---|
| 164 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â } |
|---|
| 165 | Â Â Â Â Â Â Â Â } |
|---|
| 166 | Â Â Â Â } |
|---|
| 167 | |
|---|
| 168 |     function loginform($message="", $user="") { |
|---|
| 169 | Â Â Â Â Â Â Â Â ?> |
|---|
| 170 |             <h2>Kullanıcı girişi</h2> |
|---|
| 171 | Â Â Â Â Â Â Â Â Â Â Â Â <table class=login cellspacing=1 cellpadding=0> |
|---|
| 172 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â <form name="loginform" action="?p=lc" method=post> |
|---|
| 173 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â <tr class=toolbar> |
|---|
| 174 |                         <!--td class=toolbtn><label><input type=image class=img value="Gönder" src="img/icons/send.png">Gönder</label></td--> |
|---|
| 175 |                         <td colspan=2 class=toolbar><img class=toolbtnicon src="img/icons/send.png" style="margin-right: 5px"><input type=submit class=btn2 value="Gönder"><input type=submit class=btn2 name=forgot value="Unuttum"></td> |
|---|
| 176 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â </tr> |
|---|
| 177 |                     <? if ($message!="") { ?><tr><td class=loginmsg colspan=2><?=$message?></td></tr><? } ?> |
|---|
| 178 |                     <tr><td class=loginl><b>Kullanıcı</b></td><td class=logini><input type=text class=text name=user size=30 maxlength=50 value="<?=$user?>"></td></tr> |
|---|
| 179 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â <tr><td class=loginl>Parola</td><td class=logini><input type=password class=text name=pass size=20 maxlength=50></td></tr> |
|---|
| 180 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â </form> |
|---|
| 181 | Â Â Â Â Â Â Â Â Â Â Â Â </table> |
|---|
| 182 |             <p class=w>WebFax Fax sunucu arabirimini kullanabilmek için kullanıcı girişi yapmalısınız. |
|---|
| 183 |                 Eğer sisteme girebilmek için bir kullanıcı hesabına sahip değilseniz, <a href="mailto:<?=ADMIN_EMAIL?>">sistem yöneticinize</a> başvurun.</p> |
|---|
| 184 | Â Â Â Â Â Â Â Â <? |
|---|
| 185 | Â Â Â Â } |
|---|
| 186 | |
|---|
| 187 |     function faxeditor($db=FALSE, $faxid=-1, $defaultrecipients="") { |
|---|
| 188 | Â Â Â Â Â Â Â Â ?> |
|---|
| 189 |             <h2>Fax <?=($faxid==-1?"gönder":"düzenle")?></h2> |
|---|
| 190 | Â Â Â Â Â Â Â Â Â Â Â Â <table class=genericform cellspacing=0 cellpadding=0> |
|---|
| 191 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â <form name=sendfax enctype="multipart/form-data" action="?p=fax&m=post" method=post> |
|---|
| 192 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â <tr class=toolbar> |
|---|
| 193 |                         <td class=toolbtn><label><input type=image class=img value="Gönder" src="img/icons/send.png">Gönder</label></td> |
|---|
| 194 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â <td class=toolbtn> |
|---|
| 195 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â <!--label><input type=image class=img name=addfile value=1 src="img/icons/filenew.png">Dosya ekle</label--> |
|---|
| 196 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â <input type=submit name=addfile value="Dosya ekle"> |
|---|
| 197 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â </td> |
|---|
| 198 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â </tr> |
|---|
| 199 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â <? |
|---|
| 200 |                         if ($faxid!=-1) |
|---|
| 201 |                             $job=db_getfaxjob($db, $faxid); |
|---|
| 202 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â addseperator(); |
|---|
| 203 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â addblockheader("Fax Bilgileri"); |
|---|
| 204 |                         addinput("text", "to", $faxid!=-1?$job->fto_phone:$defaultrecipients, "Fax No", 30, 500, "text"); |
|---|
| 205 |                         addinput("text", "desc", $faxid!=-1?$job->fdesc:"", "Açıklama", 30, 100, "text"); |
|---|
| 206 |                         if ($faxid!=-1) { |
|---|
| 207 |                             $f=db_getfaxjobfiles($db, $faxid); |
|---|
| 208 |                             while ($r=$f->fetchRow()) |
|---|
| 209 |                                 addinput("link", $r->filename, "?p=fax&m=preview&id=$faxid", "Dosya"); |
|---|
| 210 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â } |
|---|
| 211 |                         addinput("file", "att", "", "Dosya ekle", 20, 0, "text"); |
|---|
| 212 |                         addinput("hidden", "faxid", $faxid); |
|---|
| 213 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â // Hylafax sendfax can handle very interesting file types so removing. |
|---|
| 214 |                         // addinput("select", "ftype", array(array("ps", "Postscript", TRUE), array("pdf", "Adobe PDF", FALSE)), "Dosya Türü", 20, 0, ""); |
|---|
| 215 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â ?> |
|---|
| 216 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â </form> |
|---|
| 217 | Â Â Â Â Â Â Â Â Â Â Â Â </table> |
|---|
| 218 |             <p class=w><b>İpucu:</b> Bir dosya ekledikten sonra, <b>"Gönder"</b> butonu yerine, <b>"Dosya ekle"</b> butonunu kullanırsanız, fax kaydedildikten sonra yeni bir dosya ekleyebileceksiniz.</p> |
|---|
| 219 | Â Â Â Â Â Â Â Â <? |
|---|
| 220 | Â Â Â Â } |
|---|
| 221 | |
|---|
| 222 |     function displayapprovequeue($db) { |
|---|
| 223 |         global $userinfo; |
|---|
| 224 | Â Â Â Â Â Â Â Â ?> |
|---|
| 225 | Â Â Â Â Â Â Â Â Â Â Â Â <h2>Onay bekleyen iÅŸ listesi</h2> |
|---|
| 226 | Â Â Â Â Â Â Â Â Â Â Â Â <form name="approve" method=post action="?p=fax&m=approve"> |
|---|
| 227 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â <table class=queue cellspacing=1 cellpadding=0> |
|---|
| 228 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â <tr class=toolbar> |
|---|
| 229 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â <th class=head style="width: 25px"><input type=checkbox onclick=""></th> |
|---|
| 230 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â <th class=head>ID</th> |
|---|
| 231 |                         <th class=head style="width: 150px">Gönderen</th> |
|---|
| 232 |                         <th class=head style="width: 150px">Alıcılar</th> |
|---|
| 233 |                         <th class=head style="width: 200px">Açıklama</th> |
|---|
| 234 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â <th class=head style="width: 130px">Tarih</th> |
|---|
| 235 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â <th class=head style="width: 200px">Onaylar</th> |
|---|
| 236 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â </tr> |
|---|
| 237 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â <? |
|---|
| 238 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â $i="hi"; |
|---|
| 239 |                         if ($list=db_listsendqueue($db, $userinfo->department, $userinfo->superapprove)) |
|---|
| 240 |                             while ($r=$list->fetchRow()) |
|---|
| 241 |                                 if (!db_checkapproval($db, $r->id, $userinfo->id)) { |
|---|
| 242 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â ?> |
|---|
| 243 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â <tr class=<?=$i?>> |
|---|
| 244 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â <td class=col style="text-align: center"><input type=checkbox name="faxes[]" value="<?=$r->id?>"></td> |
|---|
| 245 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â <td class=col style="text-align: right"><a href="?p=fax&m=edit&id=<?=$r->id?>"><?=$r->id?></a></td> |
|---|
| 246 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â <td class=col><a href="?p=users&m=edit&id=<?=$r->ffrom?>" title="<?=$r->deptname?>"><?=$r->name?></a></td> |
|---|
| 247 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â <td class=col> |
|---|
| 248 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â <? |
|---|
| 249 |                                                 $s=explode(":", $r->fto_phone); |
|---|
| 250 |                                                 foreach($s as $recipient) |
|---|
| 251 |                                                     if ($pbentry=db_getphonebookentrybyfaxno($db, $recipient)) { |
|---|
| 252 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â ?><a href="?p=phonebook&m=edit&id=<?=$pbentry->id?>" title="<?=$pbentry->faxno?>"><?=$pbentry->name?></a> <? |
|---|
| 253 |                                                     } else { |
|---|
| 254 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â ?><a href="?p=fax&m=edit&id=<?=$r->id?>"><?=$r->fto_phone?></a><? |
|---|
| 255 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â } |
|---|
| 256 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â ?> |
|---|
| 257 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â </td> |
|---|
| 258 |                                         <td class=col><a href="?p=fax&m=preview&id=<?=$r->id?>" title="Önizleme için tıklayınız."><?=$r->fdesc?></a></td> |
|---|
| 259 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â <td class=col><a href="?p=fax&m=edit&id=<?=$r->id?>"><?=formattimestamp($r->queued)?></a></td> |
|---|
| 260 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â <td class=col> |
|---|
| 261 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â <? |
|---|
| 262 |                                                 $al=db_getjobapprovallist($db, $r->id); |
|---|
| 263 |                                                 while ($x=$al->fetchRow()) |
|---|
| 264 |                                                     echo '<a href="?p=users&m=edit&id='.$x->approvedby.'" title="'.$x->deptname.'">'.$x->name.'</a> '; |
|---|
| 265 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â ?> |
|---|
| 266 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â </td> |
|---|
| 267 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â </tr> |
|---|
| 268 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â <? |
|---|
| 269 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â $i=($i=="lo"?"hi":"lo"); |
|---|
| 270 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â } |
|---|
| 271 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â ?> |
|---|
| 272 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â <tr class=toolbar> |
|---|
| 273 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â <td class=col style="text-align: center"><input type=checkbox onclick=""></td> |
|---|
| 274 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â <td class=col colspan=6> |
|---|
| 275 |                             <? if (userperm(PERM_APPR)) { ?><input type=submit name=approve value="Onayla"><? } ?> |
|---|
| 276 |                             <? if ($userinfo->superapprove=="t") { ?> |
|---|
| 277 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â <input type=submit name=approvesingle value="Tek onay"> |
|---|
| 278 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â <input type=submit name=delete value="Sil"> |
|---|
| 279 |                             <? } |
|---|
| 280 |                               if ($userinfo->approverequired=="t" || userperm(PERM_APPR)) { ?> |
|---|
| 281 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â <label style="margin-left: 20px; margin-right: 5px">Red nedeni<input type=text class=text style="margin-left: 5px" name=rejectreason size=30 maxlength=200></label> |
|---|
| 282 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â <input type=submit name=reject value="Reddet"> |
|---|
| 283 |                             <? } ?> |
|---|
| 284 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â </td> |
|---|
| 285 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â </tr> |
|---|
| 286 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â </table> |
|---|
| 287 | Â Â Â Â Â Â Â Â Â Â Â Â </form> |
|---|
| 288 | Â Â Â Â Â Â Â Â <? |
|---|
| 289 | Â Â Â Â } |
|---|
| 290 | |
|---|
| 291 |     function displaysentarchive($db) { |
|---|
| 292 |         global $userinfo; |
|---|
| 293 | Â Â Â Â Â Â Â Â ?> |
|---|
| 294 |             <h2>Gönderilmiş/Reddedilmiş Fax Arşivi</h2> |
|---|
| 295 |             <table cellspacing=0 cellpadding=0><tr><td style="vertical-align: top; padding-right: 5px"><? $caldate=calendar("?p=fax&m=archive", _get("m")); ?></td><td style="vertical-align: top"> |
|---|
| 296 | Â Â Â Â Â Â Â Â Â Â Â Â <form name="approve" method=post action="?p=fax&m=approve"> |
|---|
| 297 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â <table class=queue cellspacing=1 cellpadding=0> |
|---|
| 298 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â <tr class=toolbar> |
|---|
| 299 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â <th class=head>ID</th> |
|---|
| 300 |                         <th class=head style="width: 150px">Gönderen</th> |
|---|
| 301 |                         <th class=head style="width: 150px">Alıcılar</th> |
|---|
| 302 |                         <th class=head style="width: 200px">Açıklama</th> |
|---|
| 303 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â <th class=head style="width: 50px">Saat</th> |
|---|
| 304 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â <th class=head style="width: 200px">Onaylar</th> |
|---|
| 305 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â </tr> |
|---|
| 306 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â <? |
|---|
| 307 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â $i="hi"; |
|---|
| 308 |                         if ($list=db_listsentqueue($db, $userinfo->department, $userinfo->superapprove, $caldate)) |
|---|
| 309 |                             while ($r=$list->fetchRow()) { |
|---|
| 310 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â ?> |
|---|
| 311 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â <tr class=<?=($r->rejected?"rej":$i)?>> |
|---|
| 312 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â <td class=col style="text-align: right"><?=$r->id?></td> |
|---|
| 313 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â <td class=col><a class="<?=($r->rejected?"rej":"")?>" href="?p=users&m=edit&id=<?=$r->ffrom?>" title="<?=$r->deptname?>"><?=$r->name?></a></td> |
|---|
| 314 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â <td class=col> |
|---|
| 315 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â <? |
|---|
| 316 |                                                 $s=explode(":", $r->fto_phone); |
|---|
| 317 |                                                 foreach($s as $recipient) |
|---|
| 318 |                                                     if ($pbentry=db_getphonebookentrybyfaxno($db, $recipient)) { |
|---|
| 319 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â ?><a class="<?=($r->rejected?"rej":"")?>" href="?p=phonebook&m=edit&id=<?=$pbentry->id?>" title="<?=$pbentry->faxno?>"><?=$pbentry->name?></a> <? |
|---|
| 320 |                                                     } else { |
|---|
| 321 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â ?><a class="<?=($r->rejected?"rej":"")?>" href="?p=fax&m=edit&id=<?=$r->id?>"><?=$r->fto_phone?></a> <? |
|---|
| 322 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â } |
|---|
| 323 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â ?> |
|---|
| 324 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â </td> |
|---|
| 325 |                                         <td class=col><a class="<?=($r->rejected?"rej":"")?>" href="?p=fax&m=preview&id=<?=$r->id?>" title="Önizleme için tıklayınız."><?=$r->fdesc?></a></td> |
|---|
| 326 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â <td class=col><a class="<?=($r->rejected?"rej":"")?>" href="?p=fax&m=edit&id=<?=$r->id?>"><?=formattimestamptotimeonly($r->queued)?></a></td> |
|---|
| 327 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â <td class=col> |
|---|
| 328 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â <? |
|---|
| 329 |                                                 $al=db_getjobapprovallist($db, $r->id); |
|---|
| 330 |                                                 while ($x=$al->fetchRow()) |
|---|
| 331 |                                                     echo '<a class="'.($r->rejected?"rej":"").'" href="?p=users&m=edit&id='.$x->approvedby.'" title="'.$x->deptname.'">'.$x->name.'</a> '; |
|---|
| 332 |                                                 if ($r->rejected) |
|---|
| 333 |                                                     if ($rejuser=db_getuserinfo($db, $r->rejectedby)) |
|---|
| 334 |                                                         echo '<a class=rej href="?p=users&m=edit&id='.$r->rejectedby.'" title="Red nedeni: '.$r->rejectreason.'"><b>'.$rejuser->name.' (Red)</b></a>'; |
|---|
| 335 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â ?> |
|---|
| 336 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â </td> |
|---|
| 337 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â </tr> |
|---|
| 338 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â <? |
|---|
| 339 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â $i=($i=="lo"?"hi":"lo"); |
|---|
| 340 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â } |
|---|
| 341 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â ?> |
|---|
| 342 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â </table> |
|---|
| 343 | Â Â Â Â Â Â Â Â Â Â Â Â </form></td></tr></table> |
|---|
| 344 | Â Â Â Â Â Â Â Â <? |
|---|
| 345 | Â Â Â Â } |
|---|
| 346 | |
|---|
| 347 |     function displaymyfaxes($db, $userid) { |
|---|
| 348 | Â Â Â Â Â Â Â Â ?> |
|---|
| 349 |             <h2>Faxlarım</h2> |
|---|
| 350 |             <table cellspacing=0 cellpadding=0><tr><td style="vertical-align: top; padding-right: 5px"><? $caldate=calendar("?p=fax&m=my", _get("m")); ?></td><td style="vertical-align: top"> |
|---|
| 351 | Â Â Â Â Â Â Â Â Â Â Â Â <table class=queue cellspacing=1 cellpadding=0> |
|---|
| 352 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â <tr class=toolbar> |
|---|
| 353 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â <th class=head>ID</th> |
|---|
| 354 |                     <th class=head style="width: 150px">Alıcılar</th> |
|---|
| 355 |                     <th class=head style="width: 200px">Açıklama</th> |
|---|
| 356 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â <th class=head style="width: 50px">Saat</th> |
|---|
| 357 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â <th class=head style="width: 150px">Durum</th> |
|---|
| 358 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â <th class=head style="width: 200px">Onaylar</th> |
|---|
| 359 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â </tr> |
|---|
| 360 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â <? |
|---|
| 361 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â $i="hi"; |
|---|
| 362 |                         if ($list=db_getmyfaxes($db, $userid, $caldate)) |
|---|
| 363 |                             while ($r=$list->fetchRow()) { |
|---|
| 364 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â ?> |
|---|
| 365 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â <tr class=<?=($r->rejected?"rej":$i)?>> |
|---|
| 366 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â <td class=col style="text-align: right"><?=$r->id?></td> |
|---|
| 367 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â <td class=col> |
|---|
| 368 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â <? |
|---|
| 369 |                                                 $s=explode(":", $r->fto_phone); |
|---|
| 370 |                                                 foreach($s as $recipient) |
|---|
| 371 |                                                     if ($pbentry=db_getphonebookentrybyfaxno($db, $recipient)) { |
|---|
| 372 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â ?><a class="<?=($r->rejected?"rej":"")?>" href="?p=phonebook&m=edit&id=<?=$pbentry->id?>" title="<?=$pbentry->faxno?>"><?=$pbentry->name?></a> <? |
|---|
| 373 |                                                     } else { |
|---|
| 374 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â ?><a class="<?=($r->rejected?"rej":"")?>" href="?p=fax&m=edit&id=<?=$r->id?>"><?=$r->fto_phone?></a> <? |
|---|
| 375 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â } |
|---|
| 376 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â ?> |
|---|
| 377 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â </td> |
|---|
| 378 |                                         <td class=col><a class="<?=($r->rejected?"rej":"")?>" href="?p=fax&m=preview&id=<?=$r->id?>" title="Önizleme için tıklayınız."><?=$r->fdesc?></a></td> |
|---|
| 379 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â <td class=col><a class="<?=($r->rejected?"rej":"")?>" href="?p=fax&m=edit&id=<?=$r->id?>"><?=formattimestamptotimeonly($r->sent?$r->sentat:$r->queued)?></a></td> |
|---|
| 380 |                                         <td class=col><?=($r->sent?"Gönderildi":($r->rejected?"Reddedildi":"Onay bekliyor"))?></td> |
|---|
| 381 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â <td class=col> |
|---|
| 382 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â <? |
|---|
| 383 |                                                 $al=db_getjobapprovallist($db, $r->id); |
|---|
| 384 |                                                 while ($x=$al->fetchRow()) |
|---|
| 385 |                                                     echo '<a class="'.($r->rejected?"rej":"").'" href="?p=users&m=edit&id='.$x->approvedby.'" title="'.$x->deptname.'">'.$x->name.'</a> '; |
|---|
| 386 |                                                 if ($r->rejected) |
|---|
| 387 |                                                     if ($rejuser=db_getuserinfo($db, $r->rejectedby)) |
|---|
| 388 |                                                         echo '<b><a class=rej href="?p=users&m=edit&id='.$r->rejectedby.'">'.$rejuser->name.' ('.$r->rejectreason.')</a></b>'; |
|---|
| 389 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â ?> |
|---|
| 390 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â </td> |
|---|
| 391 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â </tr> |
|---|
| 392 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â <? |
|---|
| 393 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â $i=($i=="lo"?"hi":"lo"); |
|---|
| 394 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â } |
|---|
| 395 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â ?> |
|---|
| 396 | Â Â Â Â Â Â Â Â Â Â Â Â </table></td></tr></table> |
|---|
| 397 | Â Â Â Â Â Â Â Â <? |
|---|
| 398 | Â Â Â Â } |
|---|
| 399 | |
|---|
| 400 |     function displaydepartmentlist($db) { |
|---|
| 401 | Â Â Â Â Â Â Â Â ?> |
|---|
| 402 | Â Â Â Â Â Â Â Â Â Â Â Â <h2>Departman Listesi</h2> |
|---|
| 403 | Â Â Â Â Â Â Â Â Â Â Â Â <form name="departments" method=post action="?p=departments&m=groupdel"> |
|---|
| 404 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â <table class=queue cellspacing=1 cellpadding=0> |
|---|
| 405 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â <tr class=toolbar> |
|---|
| 406 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â <td colspan=4 class=toolbar> |
|---|
| 407 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â <table cellspacing=1 cellpadding=0 class=toolbar> |
|---|
| 408 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â <tr> |
|---|
| 409 | Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â |
|---|