Changeset 72
- Timestamp:
- Jan 7, 2007 3:19:44 AM (6 years ago)
- Location:
- trunk/jpdd
- Files:
-
- 1 added
- 4 edited
-
class.dkg.row.php (modified) (5 diffs)
-
class.jpdd.organization.php (added)
-
class.jpdd.php (modified) (1 diff)
-
class.jpdd.workshop.php (modified) (1 diff)
-
sql/db.sql (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/jpdd/class.dkg.row.php
r71 r72 29 29 <fieldset><legend>New '.$sn.'</legend> 30 30 '.$dkg_site->getFormTokenHiddenInput().' 31 '. $this->getCreationFormInnards().'31 '.(method_exists($this, 'getCreationFormInnards') ? $this->getCreationFormInnards() : $this->getFormInnards()).' 32 32 <div style="clear:both;"><input type="submit" value="Make new '.$sn.'"/></div> 33 33 </form> … … 42 42 <fieldset><legend>Edit '.$sn.' '.$this->getLinkedTitle().'</legend> 43 43 '.$dkg_site->getFormTokenHiddenInput().' 44 '. $this->getEditFormInnards().'44 '.(method_exists($this, 'getEditFormInnards') ? $this->getEditFormInnards() : $this->getFormInnards()).' 45 45 <div style="clear:both;"><input type="submit" value="Save changes"/></div> 46 46 </form> … … 104 104 } 105 105 106 function getDescription($allowempty = false) {106 function getDescription($allowempty = true) { 107 107 global $dkg_site; 108 108 if (!is_null($this->_description)) { … … 116 116 } 117 117 118 function get CreationFormInnards() {118 function getFormInnards() { 119 119 return ''; 120 120 } … … 130 130 $ret .= "\n".'<div><a href="'.$this->getEditPath().'">edit</a></div>'."\n"; 131 131 } 132 $dd = $this->getDescription(); 133 if (!$dkg_site->isEmpty($dd)) { 134 $ret .= '<div>'.$dd.'</div>'; 135 } 132 136 $ret .= $this->getDetailInnards(); 133 137 return $ret; -
trunk/jpdd/class.jpdd.php
r67 r72 17 17 'filename' => 'class.jpdd.person.php', 18 18 'table' => 'person')); 19 $this->addClassMapEntry('organization', array('classname' => 'JPDD_Organization', 20 'filename' => 'class.jpdd.organization.php', 21 'table' => 'organization')); 19 22 } 20 23 -
trunk/jpdd/class.jpdd.workshop.php
r71 r72 25 25 } 26 26 27 function getCreationFormInnards() {28 return $this->getFormInnards();29 }30 function getEditFormInnards() {31 return $this->getFormInnards();32 }33 27 function getFormInnards() { 34 28 global $jpdd; -
trunk/jpdd/sql/db.sql
r71 r72 69 69 CREATE TABLE organization ( 70 70 id serial NOT NULL, 71 title character varying NOT NULL 71 title character varying NOT NULL, 72 description text 72 73 ); 73 74 … … 331 332 REVOKE ALL ON TABLE organization FROM dkg; 332 333 GRANT ALL ON TABLE organization TO dkg; 333 GRANT SELECT ON TABLE organization TO "www-data"; 334 GRANT INSERT,SELECT,UPDATE ON TABLE organization TO "www-data"; 335 336 337 -- 338 -- Name: organization_id_seq; Type: ACL; Schema: public; Owner: dkg 339 -- 340 341 REVOKE ALL ON TABLE organization_id_seq FROM PUBLIC; 342 REVOKE ALL ON TABLE organization_id_seq FROM dkg; 343 GRANT ALL ON TABLE organization_id_seq TO dkg; 344 GRANT SELECT,UPDATE ON TABLE organization_id_seq TO "www-data"; 334 345 335 346
Note: See TracChangeset
for help on using the changeset viewer.

