| [ PHPXref.com ] | [ Generated: Sun Jul 20 19:41:04 2008 ] | [ phpGroupWare 0.9.16.010 ] |
| [ Index ] [ Variables ] [ Functions ] [ Classes ] [ Constants ] [ Statistics ] | ||
[Summary view] [Print] [Text view]
1 <?php 2 /**************************************************************************\ 3 * phpGroupWare - Daily Comic Admin Link Data * 4 * http://www.phpgroupware.org * 5 * This file written by Sam Wynn <neotexan@wynnsite.com> * 6 * -------------------------------------------- * 7 * This program is free software; you can redistribute it and/or modify it * 8 * under the terms of the GNU General Public License as published by the * 9 * Free Software Foundation; either version 2 of the License, or (at your * 10 * option) any later version. * 11 \**************************************************************************/ 12 13 /* $Id: admin_comics_reset.php,v 1.1.6.1 2004/10/09 12:30:01 gugux Exp $ */ 14 { 15 $phpgw_info["flags"] = array("currentapp" => "comic", 16 "noheader" => True, 17 "nonavbar" => True, 18 "nofooter" => True, 19 "admin_header" => True); 20 21 include("../header.inc.php"); 22 23 if ($confirm) 24 { 25 $phpgw->db->query("update phpgw_comic_data " 26 ."set data_imageurl='', data_date='' " 27 ."where data_date>'0'"); 28 29 Header("Location: ".$phpgw->link("/admin/index.php")); 30 } 31 else 32 { 33 $phpgw->common->phpgw_header(); 34 echo parse_navbar(); 35 36 $phpgw->template = new Template($phpgw->common->get_tpl_dir("comic")); 37 $phpgw->template->set_file(array("comic_reset" => "question.tpl")); 38 39 $phpgw->template-> 40 set_var("question", 41 lang("Are you sure you want to reset all comic dates and resolved image urls?")); 42 43 $nolinkf = $phpgw->link("/admin/index.php"); 44 $nolink = '<a href="' . $nolinkf . '">' . lang("No") ."</a>"; 45 $phpgw->template->set_var("nolink",$nolink); 46 47 $yeslinkf = $phpgw->link("/comic/admin_comics_reset.php", 48 "confirm=True"); 49 $yeslink = '<a href="' . $yeslinkf . '">' . lang("Yes") ."</a>"; 50 $phpgw->template->set_var("yeslink",$yeslink); 51 52 $phpgw->template->set_var("th_bg",$phpgw_info["theme"]["th_bg"]); 53 $phpgw->template->set_var("yes_color",$phpgw_info["theme"]["row_on"]); 54 $phpgw->template->set_var("no_color",$phpgw_info["theme"]["bg07"]); 55 56 $phpgw->template->pfp("out","comic_reset"); 57 58 $phpgw->common->phpgw_footer(); 59 echo parse_navbar_end(); 60 } 61 } 62 63 ?>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| [ Powered by PHPXref - Served by Debian GNU/Linux ] |