File: edit_place.inc.php

package info (click to toggle)
zoph 0.6-2.1etch1
  • links: PTS
  • area: main
  • in suites: etch
  • size: 1,716 kB
  • ctags: 2,283
  • sloc: php: 8,560; perl: 1,601; sh: 760; sql: 382; python: 338; makefile: 71
file content (67 lines) | stat: -rw-r--r-- 4,018 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
<?php
/*
 * This file is part of Zoph.
 *
 * Zoph is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 * 
 * Zoph is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * You should have received a copy of the GNU General Public License
 * along with Zoph; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 */
?>
<!-- begin edit_place.inc !-->
    <h1>
      <span class="actionlink">
        <a href="places.php"><?php echo translate("return") ?></a> |
        <a href="place.php?_action=new"><?php echo translate("new") ?></a>
      </span>
      <?php echo translate($_action) ?> <?php echo translate("place") ?>
    </h1>
    <div class="main">
      <form action="place.php" method="GET">
        <input type="hidden" name="_action" value="<?php echo $action ?>">
        <input type="hidden" name="place_id" value="<?php echo $place->get("place_id") ?>">
        <label for="title"><?php echo translate("title") ?></label>
        <?php echo create_text_input("title", $place->get("title"), 40, 40) ?>
        <span class="inputhint"><?php echo sprintf(translate("%s chars max"), "64") ?></span><br>
        <label for="parent_place_id"><?php echo translate("parent location") ?></label>
        <?php echo create_pulldown("parent_place_id",
            $place->get("parent_place_id"), get_places_select_array()) ?><br>

        <label for="address"><?php echo translate("address") ?></label>
        <?php echo create_text_input("address", $place->get("address"), 40, 40) ?>
        <span class="inputhint"><?php echo sprintf(translate("%s chars max"), "64") ?></span><br>
        <label for="address2"><?php echo translate("address continued") ?></label>
        <?php echo create_text_input("address2", $place->get("address2"), 40, 40) ?>
        <span class="inputhint"><?php echo sprintf(translate("%s chars max"), "64") ?></span><br>
        <label for="city"><?php echo translate("city") ?></label>
        <?php echo create_text_input("city", $place->get("city"), 32, 32) ?>
        <span class="inputhint"><?php echo sprintf(translate("%s chars max"), "32") ?></span><br>
        <label for="state"><?php echo translate("state") ?></label>
        <?php echo create_text_input("state", $place->get("state"), 16, 32) ?>
        <span class="inputhint"><?php echo sprintf(translate("%s chars max"), "32") ?></span><br>
        <label for="zip"><?php echo translate("zip") ?></label>
        <?php echo create_text_input("zip", $place->get("zip"), 10, 10) ?>
        <span class="inputhint"><?php echo translate("zip or zip+4") ?></span><br>
        <label for="country"><?php echo translate("country") ?></label>
        <?php echo create_text_input("country", $place->get("country"), 32, 32) ?>
         <span class="inputhint"><?php echo sprintf(translate("%s chars max"), "32") ?></span><br>
         <label for="url"><?php echo translate("url") ?></label>
         <?php echo create_text_input("url", $place->get("url"), 32, 32) ?>
         <span class="inputhint"><?php echo sprintf(translate("%s chars max"), "1024") ?></span><br>
         <label for="urldesc"><?php echo translate("url description") ?></label>

         <?php echo create_text_input("urldesc", $place->get("urldesc"), 32, 32) ?>
         <span class="inputhint"><?php echo sprintf(translate("%s chars max"), "32") ?></span><br>
         <label for="notes"><?php echo translate("notes") ?></label>
         <textarea name="notes" cols="40" rows="4"><?php echo $place->get("notes") ?></textarea>
         <input type="submit" value="<?php echo translate($action, 0) ?>">
</form>
<!-- end edit_person.inc !-->