Changeset 697
- Timestamp:
- 08/22/05 00:34:21 (8 years ago)
- Location:
- trunk/wifidog-auth
- Files:
-
- 3 modified
-
ChangeLog (modified) (1 diff)
-
wifidog/classes/Network.php (modified) (1 diff)
-
wifidog/classes/Node.php (modified) (12 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wifidog-auth/ChangeLog
r696 r697 1 2005-08-22 Francois Proulx <francois.proulx@gmail.com> 2 * Added edit button for quickly accessing Content editing mode 3 * Changed the layout so the admin ui fits in a tighter space 4 1 5 2005-08-21 Francois Proulx <francois.proulx@gmail.com> 2 6 * Added reference to new street address fields in mapping page and on status template -
trunk/wifidog-auth/wifidog/classes/Network.php
r694 r697 226 226 $html .= "</div'>\n"; 227 227 $html .= "<div class='admin_section_tools'>\n"; 228 $name = "node_".$this->id."_content_".$content->GetId()."_edit"; 229 $html .= "<input type='button' name='$name' value='"._("Edit")."' onClick='window.location.href = \"".GENERIC_OBJECT_ADMIN_ABS_HREF."?object_class=Content&action=edit&object_id=".$content->GetId()."\";'>\n"; 228 230 $name = "content_group_".$this->id."_element_".$content->GetId()."_erase"; 229 231 $html .= "<input type='submit' name='$name' value='"._("Remove")."'>"; -
trunk/wifidog-auth/wifidog/classes/Node.php
r695 r697 1 1 <?php 2 3 4 2 /********************************************************************\ 5 3 * This program is free software; you can redistribute it and/or * … … 535 533 $name = "node_".$this->getId()."_description"; 536 534 $value = htmlspecialchars($this->getDescription(), ENT_QUOTES); 537 $html .= "< input type='text' size ='50' value='$value' name='$name'>\n";535 $html .= "<textarea cols='50' rows='5' name='$name'>$value</textarea>\n"; 538 536 $html .= "</div>\n"; 539 537 $html .= "</div>\n"; … … 555 553 $name = "node_".$this->getId()."_civic_number"; 556 554 $value = htmlspecialchars($this->getCivicNumber(), ENT_QUOTES); 557 $html .= "<input type='text' size =' 50' value='$value' name='$name'>\n";555 $html .= "<input type='text' size ='10' value='$value' name='$name'>\n"; 558 556 $html .= "</div>\n"; 559 557 $html .= "</div>\n"; … … 565 563 $name = "node_".$this->getId()."_street_name"; 566 564 $value = htmlspecialchars($this->getStreetName(), ENT_QUOTES); 567 $html .= "<input type='text' size =' 50' value='$value' name='$name'>\n";565 $html .= "<input type='text' size ='25' value='$value' name='$name'>\n"; 568 566 $html .= "</div>\n"; 569 567 $html .= "</div>\n"; … … 575 573 $name = "node_".$this->getId()."_city"; 576 574 $value = htmlspecialchars($this->getCity(), ENT_QUOTES); 577 $html .= "<input type='text' size =' 50' value='$value' name='$name'>\n";575 $html .= "<input type='text' size ='25' value='$value' name='$name'>\n"; 578 576 $html .= "</div>\n"; 579 577 $html .= "</div>\n"; … … 585 583 $name = "node_".$this->getId()."_province"; 586 584 $value = htmlspecialchars($this->getProvince(), ENT_QUOTES); 587 $html .= "<input type='text' size =' 50' value='$value' name='$name'>\n";585 $html .= "<input type='text' size ='15' value='$value' name='$name'>\n"; 588 586 $html .= "</div>\n"; 589 587 $html .= "</div>\n"; … … 595 593 $name = "node_".$this->getId()."_postal_code"; 596 594 $value = htmlspecialchars($this->getPostalCode(), ENT_QUOTES); 597 $html .= "<input type='text' size =' 50' value='$value' name='$name'>\n";595 $html .= "<input type='text' size ='10' value='$value' name='$name'>\n"; 598 596 $html .= "</div>\n"; 599 597 $html .= "</div>\n"; … … 605 603 $name = "node_".$this->getId()."_country"; 606 604 $value = htmlspecialchars($this->getCountry(), ENT_QUOTES); 607 $html .= "<input type='text' size =' 50' value='$value' name='$name'>\n";605 $html .= "<input type='text' size ='15' value='$value' name='$name'>\n"; 608 606 $html .= "</div>\n"; 609 607 $html .= "</div>\n"; … … 615 613 $name = "node_".$this->getId()."_public_phone"; 616 614 $value = htmlspecialchars($this->getTelephone(), ENT_QUOTES); 617 $html .= "<input type='text' size =' 50' value='$value' name='$name'>\n";615 $html .= "<input type='text' size ='20' value='$value' name='$name'>\n"; 618 616 $html .= "</div>\n"; 619 617 $html .= "</div>\n"; … … 665 663 $html .= "<div class='admin_section_title'>"._("Latitude")." : </div>\n"; 666 664 $html .= "<div class='admin_section_data'>\n"; 667 $html .= "<input type='text' size =' 50' value='$gis_lat_value' id='$gis_lat_name' name='$gis_lat_name'>\n";665 $html .= "<input type='text' size ='15' value='$gis_lat_value' id='$gis_lat_name' name='$gis_lat_name'>\n"; 668 666 $html .= "</div>\n"; 669 667 $html .= "</div>\n"; … … 672 670 $html .= "<div class='admin_section_title'>"._("Longitude")." : </div>\n"; 673 671 $html .= "<div class='admin_section_data'>\n"; 674 $html .= "<input type='text' size =' 50' value='$gis_long_value' id='$gis_long_name' name='$gis_long_name'>\n";672 $html .= "<input type='text' size ='15' value='$gis_long_value' id='$gis_long_name' name='$gis_long_name'>\n"; 675 673 $html .= "</div>\n"; 676 674 $html .= "</div>\n"; … … 780 778 $html .= "</div>\n"; 781 779 $html .= "<div class='admin_section_tools'>\n"; 780 $name = "node_".$this->id."_content_".$content->GetId()."_edit"; 781 $html .= "<input type='button' name='$name' value='"._("Edit")."' onClick='window.location.href = \"".GENERIC_OBJECT_ADMIN_ABS_HREF."?object_class=Content&action=edit&object_id=".$content->GetId()."\";'>\n"; 782 782 $name = "node_".$this->id."_content_".$content->GetId()."_erase"; 783 783 $html .= "<input type='submit' name='$name' value='"._("Remove")."'>";
