| [ Index ] |
PHP Cross Reference of Drupal 6 (heimberg) |
[Summary view] [Print] [Text view]
1 <?php 2 if($_REQUEST[categoryList] != null){ 3 require_once ('DbLib-12.php'); 4 $db = &new DbLibMySQL; 5 $db->OpenConnection(); 6 $db->Query('SELECT name, id, state, parentCatId FROM category where id = '.$_REQUEST[categoryList]); 7 $db->GetNextRecord(); 8 } else { 9 //redirect 10 header( 'Location: update_category_chooser.php' ) ; 11 } 12 ?> 13 14 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><!-- InstanceBegin template="/Templates/content_mgt.dwt" codeOutsideHTMLIsLocked="false" --> 15 <head> 16 <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> 17 <!-- InstanceBeginEditable name="doctitle" --> 18 <title>Modify a Category in the Resource Guide</title> 19 <META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW"> 20 <!-- InstanceEndEditable --> 21 <link href="../css/styles_plus_one.css" rel="stylesheet" type="text/css" /> 22 <link href="../css/styles_plus_two.css" rel="stylesheet" type="text/css" /> 23 <link href="../css/styles.css" rel="stylesheet" type="text/css" /> 24 <script src="../Scripts/AC_RunActiveContent.js" type="text/javascript"></script> 25 <script src="../Scripts/utility.js" type="text/javascript"></script> 26 27 <!-- InstanceBeginEditable name="head" --> 28 29 <meta name="generator" content="Adobe GoLive 5" /> 30 31 <!-- InstanceEndEditable --> 32 </head> 33 34 <body> 35 <div id="wrapper"> 36 <div id="topBar"><a href="../site_search.html">Search</a><a href="../faqs.html">FAQs</a><a href="../sitemap.html">Site Map</a></div> 37 <div id="headerBar"><script type="text/javascript"> 38 AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0','width','770','height','120','src','../swf/header2','quality','high','pluginspage','http://www.macromedia.com/go/getflashplayer','movie','../swf/header2' ); //end AC code 39 </script><noscript> 40 <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="770" height="120"> 41 <param name="movie" value="../swf/header2.swf" /> 42 <param name="quality" value="high" /> 43 <embed src="../swf/header2.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="770" height="120"></embed> 44 </object></noscript> 45 </div> 46 <div id="navBar"> 47 <a href="../index.html" class="menuItem">Home</a> 48 <a href="../firm/our_firm.html" class="menuItem">Our Firm</a> 49 <a href="../results/verdicts_settlements.html" class="menuItem">Verdicts & Settlements</a> 50 <a href="../practices/our_practices.html" class="menuItem">Our Practices</a> 51 <a href="../attorneys/attorneys_staff.html" class="menuItem">Our Attorneys</a> 52 <a href="resources.html" class="menuItem">Resources</a> 53 <a href="../community/community_outreach.html" class="menuItem">Community Outreach</a> 54 <a href="../contact/contact.html" class="menuItem">Contact Us</a> 55 56 57 </div> 58 59 60 <div id="mainBody"> 61 <table width="100%" border="0" cellspacing="0" cellpadding="0"> 62 <tr> 63 <td id="leftNav"> 64 <a href="the_guide.php" class="subNav">THE GUIDE</a> 65 <br/> 66 <a href="add_category.php" class="subNav">Add a Category</a> 67 <a href="delete_category.php" class="subNav">Delete a Category</a> 68 <a href="update_category_chooser.php" class="subNav">Modify a Category</a> 69 <br/> 70 <a href="add_organization.php" class="subNav">Add an Organization</a> 71 <a href="delete_organization.php" class="subNav">Delete an Organization</a> 72 <a href="update_organization_chooser.php" class="subNav">Modify an Organization</a> 73 74 </td> 75 <td id="contentArea"> 76 77 78 79 80 <!-- InstanceBeginEditable name="contentRegion" --> 81 <h1>Update a Category</h1> 82 <table border="0" cellpadding="0" cellspacing="2" width="245"> 83 <form action="update_category_handler.php" method="post" name="updateCategoryForm" id="updateCategoryForm"> 84 <tr> 85 <td width="104">Name:</td> 86 <td width="135"><input type="text" name="name" size="50" value="<?php echo $db->GetField('name');?>" /></td> 87 <input type="hidden" name="id" value="<?php echo $db->GetField('id');?>" /> 88 </tr> 89 <tr> 90 <td width="104">State:</td> 91 <td width="135"><select name="state"> 92 <option value="<?php echo $db->GetField('state');?>" selected><?php echo $db->GetField('state');?></option> 93 <option value="CA" <?php if($db->GetField('state') == 'CA'){ echo "selected"; } ?> >CA</option> 94 <option value="AZ" <?php if($db->GetField('state') == 'AZ'){ echo "selected"; } ?> >AZ</option> 95 <option value="BOTH" <?php if($db->GetField('state') == 'BOTH'){ echo "selected"; } ?> >BOTH</option></select></td> 96 </tr> 97 <tr> 98 <td valign="top">Parent Category:*</td> 99 <td><select name="parentCategoryList" size="20"> 100 <?php 101 $parent = $db->GetField('parentCatId'); 102 ?> 103 <option value="" <?php if ($parent == null) { echo "selected"; } ?>>No Parent Category</option> 104 <?php 105 $db->Query('SELECT name, id FROM category WHERE parentCatId IS NULL order by name'); 106 107 // getting all columns from all rows 108 while($db->GetNextRecord()) // get row 109 { 110 ?> 111 <option value="<?php echo $db->GetField('id');?>" <?php if ($parent == $db->GetField('id')) { echo 'selected'; } ?> ><?php echo $db->GetField('name'); ?></option> 112 <?php } 113 $db->CloseConnection(); 114 ?> 115 116 </select></td> 117 </tr> 118 <tr> 119 <td> </td> 120 <td><input type="submit" style="margin-top: 10px; margin-bottom: 10px;" name="categorySubmit" value="Modify Category" /></td> 121 </tr> 122 <tr> 123 <td> </td> 124 <td>* For example, if you are creating a subcategory under "Support Groups, then "Support Groups" would be the parent. </td> 125 </tr> 126 </form> 127 </table> 128 <p></p> 129 <!-- InstanceEndEditable --></td> 130 </tr> 131 </table> 132 </div> 133 <div id="addressBar">1801 Century Park East - Suite 1920 - Los Angeles CA 90067 | TEL: (310) 553-1799 | Toll-Free: (800) 425-5557<br /> 134 2700 N. Central Avenue - Suite 1400 - Phoenix AZ 85004 | TEL: (602) 285-4406 | Toll-Free: (800) 425-5557</div> 135 <div id="footerBar"> 136 <table width="100%" border="0" cellspacing="0" cellpadding="0"> 137 <tr> 138 <td style="padding-left:12px">© Copyright 2006 Heimberg Law Group, LLP. All Rights Reserved. </td> 139 <td align="right" style="padding-right:12px"><a href="../disclaimer.html">Disclaimer</a></td> 140 </tr> 141 </table> 142 </div> 143 </div> 144 </body> 145 <!-- InstanceEnd --></html>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Wed Mar 23 13:22:29 2011 | Cross-referenced by PHPXref 0.7 |