You can subscribe to this list here.
2003 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(120) |
Jun
(74) |
Jul
(97) |
Aug
(35) |
Sep
(35) |
Oct
(34) |
Nov
|
Dec
(6) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2004 |
Jan
(18) |
Feb
(8) |
Mar
(7) |
Apr
(23) |
May
(28) |
Jun
(31) |
Jul
(27) |
Aug
(34) |
Sep
(48) |
Oct
(511) |
Nov
(197) |
Dec
(333) |
2005 |
Jan
(212) |
Feb
(33) |
Mar
(94) |
Apr
(51) |
May
(16) |
Jun
|
Jul
(200) |
Aug
(43) |
Sep
(88) |
Oct
(60) |
Nov
(62) |
Dec
(41) |
2006 |
Jan
(94) |
Feb
(49) |
Mar
(54) |
Apr
|
May
(39) |
Jun
(39) |
Jul
(61) |
Aug
(36) |
Sep
(23) |
Oct
(76) |
Nov
(73) |
Dec
(32) |
2007 |
Jan
|
Feb
(87) |
Mar
|
Apr
(8) |
May
(36) |
Jun
(49) |
Jul
(54) |
Aug
(8) |
Sep
(50) |
Oct
(36) |
Nov
|
Dec
(3) |
2008 |
Jan
(133) |
Feb
(54) |
Mar
(39) |
Apr
(2) |
May
(6) |
Jun
(74) |
Jul
(97) |
Aug
(70) |
Sep
(12) |
Oct
(20) |
Nov
(64) |
Dec
(24) |
2009 |
Jan
(25) |
Feb
(49) |
Mar
(18) |
Apr
|
May
|
Jun
(3) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2011 |
Jan
(10) |
Feb
|
Mar
|
Apr
|
May
|
Jun
(7) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: <dts...@us...> - 2003-05-30 13:33:47
|
Update of /cvsroot/phpwebsite-comm/modules/contacts/templates/contacts In directory sc8-pr-cvs1:/tmp/cvs-serv4128/templates/contacts Modified Files: list.tpl row.tpl Log Message: Saving and listing template updates Index: list.tpl =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/contacts/templates/contacts/list.tpl,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** list.tpl 28 May 2003 19:51:59 -0000 1.1 --- list.tpl 30 May 2003 13:33:40 -0000 1.2 *************** *** 2,6 **** <tr class="bg_medium"> <td class="smalltext" align="center">{SELECT_LABEL}</td> ! <td class="smalltext"><b>{FAMILYNAME_LABEL}</b></td> <td class="smalltext"><b>{GIVENNAME_LABEL}</b></td> </tr> --- 2,6 ---- <tr class="bg_medium"> <td class="smalltext" align="center">{SELECT_LABEL}</td> ! <td class="smalltext"><b>{SURNAME_LABEL}</b></td> <td class="smalltext"><b>{GIVENNAME_LABEL}</b></td> </tr> *************** *** 9,13 **** <tr class="bg_medium"> <td>{NAV_LIMITS}    {NAV_BACKWARD} {NAV_SECTIONS} {NAV_FORWARD}</td> ! <td align="right">{ACTION_SELECT} {ACTION_BUTTON}</td> </tr> <!-- END navigation --> --- 9,13 ---- <tr class="bg_medium"> <td>{NAV_LIMITS}    {NAV_BACKWARD} {NAV_SECTIONS} {NAV_FORWARD}</td> ! <td align="right" colspan="2">{ACTION_SELECT} {ACTION_BUTTON}</td> </tr> <!-- END navigation --> Index: row.tpl =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/contacts/templates/contacts/row.tpl,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** row.tpl 28 May 2003 19:51:59 -0000 1.1 --- row.tpl 30 May 2003 13:33:40 -0000 1.2 *************** *** 1,5 **** <tr{ROW_CLASS}> <td align="center">{SELECT}</td> ! <td class="smalltext">{FAMILYNAME}</td> <td class="smalltext">{GIVENNAME}</td> </tr> --- 1,5 ---- <tr{ROW_CLASS}> <td align="center">{SELECT}</td> ! <td class="smalltext">{SURNAME}</td> <td class="smalltext">{GIVENNAME}</td> </tr> |
From: <dts...@us...> - 2003-05-29 17:54:27
|
Update of /cvsroot/phpwebsite-comm/modules/contacts/class In directory sc8-pr-cvs1:/tmp/cvs-serv11710/class Modified Files: Contact.php Log Message: Use givenname jerk Index: Contact.php =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/contacts/class/Contact.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** Contact.php 29 May 2003 17:49:12 -0000 1.4 --- Contact.php 29 May 2003 17:54:22 -0000 1.5 *************** *** 252,259 **** if(isset($_REQUEST["Contact_middlename"])) $this->_middlename = $_REQUEST["Contact_middlename"]; ! if(isset($_REQUEST["Contact_firstname"])) ! $this->_firstname = $_REQUEST["Contact_firstname"]; ! $this->setLabel("$this->_surname, $this->_firstname $this->_middlename"); if(isset($_REQUEST["Contact_prefix"])) --- 252,259 ---- if(isset($_REQUEST["Contact_middlename"])) $this->_middlename = $_REQUEST["Contact_middlename"]; ! if(isset($_REQUEST["Contact_givenname"])) ! $this->_givenname = $_REQUEST["Contact_givenname"]; ! $this->setLabel("$this->_surname, $this->_givenname $this->_middlename"); if(isset($_REQUEST["Contact_prefix"])) |
From: <dts...@us...> - 2003-05-29 17:49:15
|
Update of /cvsroot/phpwebsite-comm/modules/contacts/class In directory sc8-pr-cvs1:/tmp/cvs-serv9246/class Modified Files: Contact.php Log Message: Quick fix Index: Contact.php =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/contacts/class/Contact.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** Contact.php 29 May 2003 17:46:55 -0000 1.3 --- Contact.php 29 May 2003 17:49:12 -0000 1.4 *************** *** 255,259 **** $this->_firstname = $_REQUEST["Contact_firstname"]; ! $this->setLabel($this->_surname . ", " . $this->_firstname . " " $this->_middlename); if(isset($_REQUEST["Contact_prefix"])) --- 255,259 ---- $this->_firstname = $_REQUEST["Contact_firstname"]; ! $this->setLabel("$this->_surname, $this->_firstname $this->_middlename"); if(isset($_REQUEST["Contact_prefix"])) |
From: <dts...@us...> - 2003-05-29 17:47:17
|
Update of /cvsroot/phpwebsite-comm/modules/contacts/class In directory sc8-pr-cvs1:/tmp/cvs-serv8056/class Modified Files: AddressType.php Country.php PhoneType.php Log Message: Typo bug fixes Index: AddressType.php =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/contacts/class/AddressType.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** AddressType.php 28 May 2003 21:31:10 -0000 1.2 --- AddressType.php 29 May 2003 17:47:13 -0000 1.3 *************** *** 42,46 **** if(!$_SESSION["OBJ_user"]->allow_access("contacts","edit_addresstypes")) { $message = $_SESSION["translate"]->it("Access to edit address types was denied due to lack of proper permissions."); ! $error = new PHWPS_Error("contacts", "CONTACTS_AddressType::_edit()", $message, "exit", 1); $error->message(); return FALSE; --- 42,46 ---- if(!$_SESSION["OBJ_user"]->allow_access("contacts","edit_addresstypes")) { $message = $_SESSION["translate"]->it("Access to edit address types was denied due to lack of proper permissions."); ! $error = new PHPWS_Error("contacts", "CONTACTS_AddressType::_edit()", $message, "exit", 1); $error->message(); return FALSE; *************** *** 82,86 **** if(!$_SESSION["OBJ_user"]->allow_access("contacts", "edit_addresstypes")) { $message = $_SESSION["translate"]->it("Access to save address types was denied due to lack of proper permissions."); ! $error = new PHWPS_Error("contacts", "CONTACTS_AddressType::_save()", $message, "exit", 1); $error->message(); return FALSE; --- 82,86 ---- if(!$_SESSION["OBJ_user"]->allow_access("contacts", "edit_addresstypes")) { $message = $_SESSION["translate"]->it("Access to save address types was denied due to lack of proper permissions."); ! $error = new PHPWS_Error("contacts", "CONTACTS_AddressType::_save()", $message, "exit", 1); $error->message(); return FALSE; *************** *** 116,120 **** if(!$_SESSION["OBJ_user"]->allow_access("contacts", "delete_addresstypes")) { $message = $_SESSION["translate"]->it("Access to delete address type was denied due to lack of proper permissions."); ! $error = new PHWPS_Error("contacts", "CONTACTS_AddressType::_delete()", $message, "exit", 1); $error->message(); return FALSE; --- 116,120 ---- if(!$_SESSION["OBJ_user"]->allow_access("contacts", "delete_addresstypes")) { $message = $_SESSION["translate"]->it("Access to delete address type was denied due to lack of proper permissions."); ! $error = new PHPWS_Error("contacts", "CONTACTS_AddressType::_delete()", $message, "exit", 1); $error->message(); return FALSE; Index: Country.php =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/contacts/class/Country.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** Country.php 28 May 2003 21:31:11 -0000 1.4 --- Country.php 29 May 2003 17:47:13 -0000 1.5 *************** *** 42,46 **** if(!$_SESSION["OBJ_user"]->allow_access("contacts","edit_countries")) { $message = $_SESSION["translate"]->it("Access to edit country was denied due to lack of proper permissions."); ! $error = new PHWPS_Error("contacts", "CONTACTS_Country::_edit()", $message, "exit", 1); $error->message(); return FALSE; --- 42,46 ---- if(!$_SESSION["OBJ_user"]->allow_access("contacts","edit_countries")) { $message = $_SESSION["translate"]->it("Access to edit country was denied due to lack of proper permissions."); ! $error = new PHPWS_Error("contacts", "CONTACTS_Country::_edit()", $message, "exit", 1); $error->message(); return FALSE; *************** *** 82,86 **** if(!$_SESSION["OBJ_user"]->allow_access("contacts", "edit_countries")) { $message = $_SESSION["translate"]->it("Access to save country was denied due to lack of proper permissions."); ! $error = new PHWPS_Error("contacts", "CONTACTS_Country::_save()", $message, "exit", 1); $error->message(); return FALSE; --- 82,86 ---- if(!$_SESSION["OBJ_user"]->allow_access("contacts", "edit_countries")) { $message = $_SESSION["translate"]->it("Access to save country was denied due to lack of proper permissions."); ! $error = new PHPWS_Error("contacts", "CONTACTS_Country::_save()", $message, "exit", 1); $error->message(); return FALSE; *************** *** 116,120 **** if(!$_SESSION["OBJ_user"]->allow_access("contacts", "delete_countries")) { $message = $_SESSION["translate"]->it("Access to delete country was denied due to lack of proper permissions."); ! $error = new PHWPS_Error("contacts", "CONTACTS_Country::_delete()", $message, "exit", 1); $error->message(); return FALSE; --- 116,120 ---- if(!$_SESSION["OBJ_user"]->allow_access("contacts", "delete_countries")) { $message = $_SESSION["translate"]->it("Access to delete country was denied due to lack of proper permissions."); ! $error = new PHPWS_Error("contacts", "CONTACTS_Country::_delete()", $message, "exit", 1); $error->message(); return FALSE; Index: PhoneType.php =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/contacts/class/PhoneType.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** PhoneType.php 28 May 2003 21:31:11 -0000 1.2 --- PhoneType.php 29 May 2003 17:47:13 -0000 1.3 *************** *** 42,46 **** if(!$_SESSION["OBJ_user"]->allow_access("contacts","edit_phonetypes")) { $message = $_SESSION["translate"]->it("Access to edit phone types was denied due to lack of proper permissions."); ! $error = new PHWPS_Error("contacts", "CONTACTS_PhoneType::_edit()", $message, "exit", 1); $error->message(); return FALSE; --- 42,46 ---- if(!$_SESSION["OBJ_user"]->allow_access("contacts","edit_phonetypes")) { $message = $_SESSION["translate"]->it("Access to edit phone types was denied due to lack of proper permissions."); ! $error = new PHPWS_Error("contacts", "CONTACTS_PhoneType::_edit()", $message, "exit", 1); $error->message(); return FALSE; *************** *** 82,86 **** if(!$_SESSION["OBJ_user"]->allow_access("contacts", "edit_phonetypes")) { $message = $_SESSION["translate"]->it("Access to save phone types was denied due to lack of proper permissions."); ! $error = new PHWPS_Error("contacts", "CONTACTS_PhoneType::_save()", $message, "exit", 1); $error->message(); return FALSE; --- 82,86 ---- if(!$_SESSION["OBJ_user"]->allow_access("contacts", "edit_phonetypes")) { $message = $_SESSION["translate"]->it("Access to save phone types was denied due to lack of proper permissions."); ! $error = new PHPWS_Error("contacts", "CONTACTS_PhoneType::_save()", $message, "exit", 1); $error->message(); return FALSE; *************** *** 116,120 **** if(!$_SESSION["OBJ_user"]->allow_access("contacts", "delete_phonetypes")) { $message = $_SESSION["translate"]->it("Access to delete phone type was denied due to lack of proper permissions."); ! $error = new PHWPS_Error("contacts", "CONTACTS_PhoneType::_delete()", $message, "exit", 1); $error->message(); return FALSE; --- 116,120 ---- if(!$_SESSION["OBJ_user"]->allow_access("contacts", "delete_phonetypes")) { $message = $_SESSION["translate"]->it("Access to delete phone type was denied due to lack of proper permissions."); ! $error = new PHPWS_Error("contacts", "CONTACTS_PhoneType::_delete()", $message, "exit", 1); $error->message(); return FALSE; |
From: <dts...@us...> - 2003-05-29 17:47:02
|
Update of /cvsroot/phpwebsite-comm/modules/contacts/templates In directory sc8-pr-cvs1:/tmp/cvs-serv7363/templates Added Files: edit_contacts.tpl Log Message: Progress on contact class --- NEW FILE: edit_contacts.tpl --- {START_FORM} <table border="0" cellpadding="0" cellspacing="0"> <tr><td align="right">{PREFIX_TEXT}:</td><td>{CONTACT_PREFIX}</td></tr> <tr><td align="right">{GIVENNAME_TEXT}:</td><td>{CONTACT_GIVENNAME}</td></tr> <tr><td align="right">{MIDDLENAME_TEXT}:</td><td>{CONTACT_MIDDLENAME}</td></tr> <tr><td align="right">{SURNAME_TEXT}:</td><td>{CONTACT_SURNAME}</td></tr> <tr><td align="right">{SUFFIX_TEXT}:</td><td>{CONTACT_SUFFIX}</td></tr> </table> <hr size="1" width="100%" noshade /> <table border="0" cellpadding="0" cellspacing="0"> <tr><td align="right">{EMAIL_TEXT}:</td><td>{CONTACT_EMAIL}</td></tr> <tr><td align="right">{WEBSITE_TEXT}:</td><td>{CONTACT_WEBSITE}</td></tr> <tr><td align="right">{BIRTHDAY_TEXT}:</td><td>{CONTACT_BIRTHDAY}</td></tr> <tr><td align="right">{ANNIVERSARY_TEXT}:</td><td>{CONTACT_ANNIVERSARY}</td></tr> </table> <hr size="1" width="100%" noshade /> <table border="0" cellpadding="0" cellspacing="0"> <tr><td align="right">{ORGANIZATION_TEXT}:</td><td>{CONTACT_ORGANIZATION}</td></tr> <tr><td align="right">{ORGUNIT_TEXT}:</td><td>{CONTACT_ORGUNIT}</td></tr> <tr><td align="right">{TITLE_TEXT}:</td><td>{CONTACT_TITLE}</td></tr> </table> <br /> {CONTACT_SAVE} {END_FORM} |
From: <dts...@us...> - 2003-05-29 17:47:02
|
Update of /cvsroot/phpwebsite-comm/modules/contacts/boost In directory sc8-pr-cvs1:/tmp/cvs-serv7363/boost Modified Files: install.sql Log Message: Progress on contact class Index: install.sql =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/contacts/boost/install.sql,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** install.sql 29 May 2003 16:56:14 -0000 1.3 --- install.sql 29 May 2003 17:46:54 -0000 1.4 *************** *** 14,18 **** givenname varchar(20) NOT NULL, middlename varchar(20) NOT NULL, ! familyname varchar(40) NOT NULL, prefix varchar(5), suffix varchar(5), --- 14,18 ---- givenname varchar(20) NOT NULL, middlename varchar(20) NOT NULL, ! surname varchar(40) NOT NULL, prefix varchar(5), suffix varchar(5), *************** *** 20,23 **** --- 20,24 ---- website varchar(80), birthday int NOT NULL default '0', + anniversary int NOT NULL default '0', organization varchar(80), orgunit varchar(80), |
From: <dts...@us...> - 2003-05-29 17:47:02
|
Update of /cvsroot/phpwebsite-comm/modules/contacts/class In directory sc8-pr-cvs1:/tmp/cvs-serv7363/class Modified Files: Manager.php Contact.php Log Message: Progress on contact class Index: Manager.php =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/contacts/class/Manager.php,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** Manager.php 29 May 2003 16:56:23 -0000 1.5 --- Manager.php 29 May 2003 17:46:55 -0000 1.6 *************** *** 154,159 **** switch($_REQUEST["CONTACTS_MAN_OP"]) { ! case "new": ! $this->_new(); break; --- 154,159 ---- switch($_REQUEST["CONTACTS_MAN_OP"]) { ! case "edit": ! $this->_edit(); break; Index: Contact.php =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/contacts/class/Contact.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** Contact.php 29 May 2003 16:56:23 -0000 1.2 --- Contact.php 29 May 2003 17:46:55 -0000 1.3 *************** *** 31,35 **** * @access private */ ! var $_familyname = NULL; --- 31,35 ---- * @access private */ ! var $_surname = NULL; *************** *** 80,83 **** --- 80,92 ---- /** + * The anniversary of the contact + * + * @var string + * @access private + */ + var $_anniversary = NULL; + + + /** * The organization (workplace) of the contact * *************** *** 118,121 **** --- 127,134 ---- $this->setId($CONTACT_ID); $this->init(); + } else { + // Find user ID and create quick contact? + $this->setLabel($_SESSION["OBJ_user"]->username); + $this->setOwner($_SESSION["OBJ_user"]->username); } }// END FUNC CONTACTS_Contact *************** *** 124,130 **** function _edit() { // Need to see if the userid matches the object owner ! if(($_SESSION["OBJ_user"]->username != $this->getOwner()) || !$_SESSION["OBJ_user"]->allow_access("contacts","edit_contacts")) { $message = $_SESSION["translate"]->it("Access to edit contact was denied due to lack of proper permissions."); ! $error = new PHWPS_Error("contacts", "CONTACTS_Contact::_edit()", $message, "exit", 1); $error->message(); return FALSE; --- 137,146 ---- function _edit() { // Need to see if the userid matches the object owner ! //echo "<h1>You are " . $_SESSION["OBJ_user"]->username . "</h1>"; ! //echo "<h1>Owner is " . $this->getOwner() . "</h1>"; ! ! if(($_SESSION["OBJ_user"]->username != $this->getOwner()) && !$_SESSION["OBJ_user"]->allow_access("contacts","edit_contacts")) { $message = $_SESSION["translate"]->it("Access to edit contact was denied due to lack of proper permissions."); ! $error = new PHPWS_Error("contacts", "CONTACTS_Contact::_edit()", $message, "exit", 1); $error->message(); return FALSE; *************** *** 135,151 **** $form = new EZform("CONTACTS_Contact_edit"); ! /* Contact Name */ ! $form->add("Contact_contact", "text", $this->_contact); ! $form->setSize("Contact_contact", 33); ! $form->setTab("Contact_contact", 1); ! /* Contact Abbreviation */ ! $form->add("Contact_code", "text", $this->_code); ! $form->setSize("Contact_code", 5); ! $form->setTab("Contact_code", 2); /* Save Button */ $form->add("Contact_save", "submit", $_SESSION["translate"]->it("Save")); ! $form->setTab("Contact_save", 3); /* Module Information */ --- 151,217 ---- $form = new EZform("CONTACTS_Contact_edit"); ! /* Contact Prefix */ ! $form->add("Contact_prefix", "text", $this->_prefix); ! $form->setSize("Contact_prefix", 5); ! $form->setTab("Contact_prefix", 1); ! /* Contact Given Name */ ! $form->add("Contact_givenname", "text", $this->_givenname); ! $form->setSize("Contact_givenname", 33); ! $form->setTab("Contact_givenname", 2); ! ! /* Contact Middle Name */ ! $form->add("Contact_middlename", "text", $this->_middlename); ! $form->setSize("Contact_middlename", 33); ! $form->setTab("Contact_middlename", 3); ! ! /* Contact Family Name */ ! $form->add("Contact_surname", "text", $this->_surname); ! $form->setSize("Contact_surname", 33); ! $form->setTab("Contact_surname", 4); ! ! /* Contact Suffix */ ! $form->add("Contact_suffix", "text", $this->_suffix); ! $form->setSize("Contact_suffix", 5); ! $form->setTab("Contact_suffix", 5); ! ! /* Contact Email */ ! $form->add("Contact_email", "text", $this->_email); ! $form->setSize("Contact_email", 33); ! $form->setTab("Contact_email", 6); ! ! /* Contact Website */ ! $form->add("Contact_website", "text", $this->_website); ! $form->setSize("Contact_website", 33); ! $form->setTab("Contact_website", 7); ! ! /* Contact Birthday */ ! $form->add("Contact_birthday", "text", $this->_birthday); ! $form->setSize("Contact_birthday", 5); ! $form->setTab("Contact_birthday", 8); ! ! /* Contact Anniversary */ ! $form->add("Contact_anniversary", "text", $this->_anniversary); ! $form->setSize("Contact_anniversary", 5); ! $form->setTab("Contact_anniversary", 9); ! ! /* Contact Organization */ ! $form->add("Contact_organization", "text", $this->_organization); ! $form->setSize("Contact_organization", 33); ! $form->setTab("Contact_organization", 10); ! ! /* Contact Organization Unit */ ! $form->add("Contact_orgunit", "text", $this->_orgunit); ! $form->setSize("Contact_orgunit", 33); ! $form->setTab("Contact_orgunit", 11); ! ! /* Contact Organization Title */ ! $form->add("Contact_title", "text", $this->_title); ! $form->setSize("Contact_title", 33); ! $form->setTab("Contact_title", 12); /* Save Button */ $form->add("Contact_save", "submit", $_SESSION["translate"]->it("Save")); ! $form->setTab("Contact_save", 13); /* Module Information */ *************** *** 156,161 **** $tags = $form->getTemplate(); ! $tags["CONTACT_TEXT"] = $_SESSION["translate"]->it("Contact"); ! $tags["CODE_TEXT"] = $_SESSION["translate"]->it("Abbreviation"); return $GLOBALS["core"]->processTemplate($tags, "contacts", "edit_contacts.tpl"); --- 222,237 ---- $tags = $form->getTemplate(); ! $tags["PREFIX_TEXT"] = $_SESSION["translate"]->it("Prefix"); ! $tags["GIVENNAME_TEXT"] = $_SESSION["translate"]->it("Given Name"); ! $tags["MIDDLENAME_TEXT"] = $_SESSION["translate"]->it("Middle Name"); ! $tags["SURNAME_TEXT"] = $_SESSION["translate"]->it("Surname"); ! $tags["SUFFIX_TEXT"] = $_SESSION["translate"]->it("Suffix"); ! $tags["EMAIL_TEXT"] = $_SESSION["translate"]->it("Email"); ! $tags["WEBSITE_TEXT"] = $_SESSION["translate"]->it("Website"); ! $tags["BIRTHDAY_TEXT"] = $_SESSION["translate"]->it("Birthday"); ! $tags["ANNIVERSARY_TEXT"] = $_SESSION["translate"]->it("Anniversary"); ! $tags["ORGANIZATION_TEXT"] = $_SESSION["translate"]->it("Organization"); ! $tags["ORGUNIT_TEXT"] = $_SESSION["translate"]->it("Organization Unit"); ! $tags["TITLE_TEXT"] = $_SESSION["translate"]->it("Title"); return $GLOBALS["core"]->processTemplate($tags, "contacts", "edit_contacts.tpl"); *************** *** 165,182 **** function _save() { ! if(!$_SESSION["OBJ_user"]->allow_access("contacts", "edit_contacts")) { $message = $_SESSION["translate"]->it("Access to save contact was denied due to lack of proper permissions."); ! $error = new PHWPS_Error("contacts", "CONTACTS_Contact::_save()", $message, "exit", 1); $error->message(); return FALSE; } ! if(isset($_REQUEST["Contact_contact"])) ! $this->_contact = $_REQUEST["Contact_contact"]; ! $this->setLabel($this->_contact); ! if(isset($_REQUEST["Contact_code"])) ! $this->_code = $_REQUEST["Contact_code"]; $error = $this->commit(); --- 241,279 ---- function _save() { ! if(($_SESSION["OBJ_user"]->username != $this->getOwner()) && !$_SESSION["OBJ_user"]->allow_access("contacts","edit_contacts")) { $message = $_SESSION["translate"]->it("Access to save contact was denied due to lack of proper permissions."); ! $error = new PHPWS_Error("contacts", "CONTACTS_Contact::_save()", $message, "exit", 1); $error->message(); return FALSE; } ! if(isset($_REQUEST["Contact_surname"])) ! $this->_surname = $_REQUEST["Contact_surname"]; ! if(isset($_REQUEST["Contact_middlename"])) ! $this->_middlename = $_REQUEST["Contact_middlename"]; ! if(isset($_REQUEST["Contact_firstname"])) ! $this->_firstname = $_REQUEST["Contact_firstname"]; ! $this->setLabel($this->_surname . ", " . $this->_firstname . " " $this->_middlename); ! if(isset($_REQUEST["Contact_prefix"])) ! $this->_prefix = $_REQUEST["Contact_prefix"]; ! if(isset($_REQUEST["Contact_suffix"])) ! $this->_suffix = $_REQUEST["Contact_suffix"]; ! ! if(isset($_REQUEST["Contact_email"])) ! $this->_email = $_REQUEST["Contact_email"]; ! if(isset($_REQUEST["Contact_website"])) ! $this->_website = $_REQUEST["Contact_website"]; ! if(isset($_REQUEST["Contact_birthday"])) ! $this->_birthday = $_REQUEST["Contact_birthday"]; ! if(isset($_REQUEST["Contact_anniversary"])) ! $this->_anniversary = $_REQUEST["Contact_anniversary"]; ! if(isset($_REQUEST["Contact_organization"])) ! $this->_organization = $_REQUEST["Contact_organization"]; ! if(isset($_REQUEST["Contact_orgunit"])) ! $this->_orgunit = $_REQUEST["Contact_orgunit"]; ! if(isset($_REQUEST["Contact_title"])) ! $this->_title = $_REQUEST["Contact_title"]; $error = $this->commit(); *************** *** 201,205 **** if(!$_SESSION["OBJ_user"]->allow_access("contacts", "delete_contacts")) { $message = $_SESSION["translate"]->it("Access to delete contact was denied due to lack of proper permissions."); ! $error = new PHWPS_Error("contacts", "CONTACTS_Contact::_delete()", $message, "exit", 1); $error->message(); return FALSE; --- 298,302 ---- if(!$_SESSION["OBJ_user"]->allow_access("contacts", "delete_contacts")) { $message = $_SESSION["translate"]->it("Access to delete contact was denied due to lack of proper permissions."); ! $error = new PHPWS_Error("contacts", "CONTACTS_Contact::_delete()", $message, "exit", 1); $error->message(); return FALSE; |
From: <dts...@us...> - 2003-05-29 16:56:56
|
Update of /cvsroot/phpwebsite-comm/modules/contacts/boost In directory sc8-pr-cvs1:/tmp/cvs-serv17690/boost Modified Files: install.sql Log Message: Some cosmetic changes and starting to flesh out the contact Index: install.sql =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/contacts/boost/install.sql,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** install.sql 28 May 2003 20:50:39 -0000 1.2 --- install.sql 29 May 2003 16:56:14 -0000 1.3 *************** *** 18,22 **** --- 18,26 ---- suffix varchar(5), email varchar(80), + website varchar(80), birthday int NOT NULL default '0', + organization varchar(80), + orgunit varchar(80), + title varchar(80), PRIMARY KEY (id) ); |
From: <dts...@us...> - 2003-05-29 16:56:29
|
Update of /cvsroot/phpwebsite-comm/modules/contacts/conf In directory sc8-pr-cvs1:/tmp/cvs-serv17690/conf Modified Files: controlpanel.php Log Message: Some cosmetic changes and starting to flesh out the contact Index: controlpanel.php =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/contacts/conf/controlpanel.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** controlpanel.php 27 May 2003 16:58:51 -0000 1.1 --- controlpanel.php 29 May 2003 16:56:24 -0000 1.2 *************** *** 10,14 **** "url"=>"index.php?module=contacts&CONTACTS_MAN_OP=list", "image"=>$image, ! "description"=>"Blah blah blah", "tab"=>"content"); --- 10,14 ---- "url"=>"index.php?module=contacts&CONTACTS_MAN_OP=list", "image"=>$image, ! "description"=>"Contacts provides extended user information.", "tab"=>"content"); |
From: <dts...@us...> - 2003-05-29 16:56:27
|
Update of /cvsroot/phpwebsite-comm/modules/contacts/class In directory sc8-pr-cvs1:/tmp/cvs-serv17690/class Modified Files: Contact.php Manager.php Log Message: Some cosmetic changes and starting to flesh out the contact Index: Contact.php =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/contacts/class/Contact.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** Contact.php 28 May 2003 18:01:11 -0000 1.1 --- Contact.php 29 May 2003 16:56:23 -0000 1.2 *************** *** 7,10 **** --- 7,270 ---- class CONTACTS_Contact extends PHPWS_Item { + /** + * The given (first) name of the contact + * + * @var string + * @access private + */ + var $_givenname = NULL; + + + /** + * The middle name of the contact + * + * @var string + * @access private + */ + var $_middlename = NULL; + + + /** + * The family (last) name of the contact + * + * @var string + * @access private + */ + var $_familyname = NULL; + + + /** + * The prefix (Dr. , Mr. , Fr. , etc) of the contact + * + * @var string + * @access private + */ + var $_prefix = NULL; + + + /** + * The suffix (Jr. , Sr. , III, M.D., PhD) of the contact + * + * @var string + * @access private + */ + var $_suffix = NULL; + + + /** + * The email address of the contact + * + * @var string + * @access private + */ + var $_email = NULL; + + + /** + * The website URL of the contact + * + * @var string + * @access private + */ + var $_website = NULL; + + + /** + * The birthday of the contact + * + * @var string + * @access private + */ + var $_birthday = NULL; + + + /** + * The organization (workplace) of the contact + * + * @var string + * @access private + */ + var $_organization = NULL; + + + /** + * The unit (division/department) within the + * organization (workplace) of the contact + * + * @var string + * @access private + */ + var $_orgunit = NULL; + + + /** + * The title/role of the contact + * + * @var string + * @access private + */ + var $_title = NULL; + + + + function CONTACTS_Contact($CONTACT_ID = NULL) { + /* These vars are excluded on commit() */ + // $exclude = array(); + // $this->addExclude($exclude); + + $this->setTable("mod_contacts_contacts"); + + if(isset($CONTACT_ID)) { + $this->setId($CONTACT_ID); + $this->init(); + } + }// END FUNC CONTACTS_Contact + + + function _edit() { + // Need to see if the userid matches the object owner + if(($_SESSION["OBJ_user"]->username != $this->getOwner()) || !$_SESSION["OBJ_user"]->allow_access("contacts","edit_contacts")) { + $message = $_SESSION["translate"]->it("Access to edit contact was denied due to lack of proper permissions."); + $error = new PHWPS_Error("contacts", "CONTACTS_Contact::_edit()", $message, "exit", 1); + $error->message(); + return FALSE; + } + + + /* Create form */ + $form = new EZform("CONTACTS_Contact_edit"); + + /* Contact Name */ + $form->add("Contact_contact", "text", $this->_contact); + $form->setSize("Contact_contact", 33); + $form->setTab("Contact_contact", 1); + + /* Contact Abbreviation */ + $form->add("Contact_code", "text", $this->_code); + $form->setSize("Contact_code", 5); + $form->setTab("Contact_code", 2); + + /* Save Button */ + $form->add("Contact_save", "submit", $_SESSION["translate"]->it("Save")); + $form->setTab("Contact_save", 3); + + /* Module Information */ + $form->add("module", "hidden", "contacts"); + $form->add("CONTACTS_Contact_OP", "hidden", "save"); + + $tags = array(); + $tags = $form->getTemplate(); + + $tags["CONTACT_TEXT"] = $_SESSION["translate"]->it("Contact"); + $tags["CODE_TEXT"] = $_SESSION["translate"]->it("Abbreviation"); + + return $GLOBALS["core"]->processTemplate($tags, "contacts", "edit_contacts.tpl"); + + }// END FUNC _edit + + + function _save() { + if(!$_SESSION["OBJ_user"]->allow_access("contacts", "edit_contacts")) { + $message = $_SESSION["translate"]->it("Access to save contact was denied due to lack of proper permissions."); + $error = new PHWPS_Error("contacts", "CONTACTS_Contact::_save()", $message, "exit", 1); + $error->message(); + return FALSE; + } + + if(isset($_REQUEST["Contact_contact"])) + $this->_contact = $_REQUEST["Contact_contact"]; + + $this->setLabel($this->_contact); + + if(isset($_REQUEST["Contact_code"])) + $this->_code = $_REQUEST["Contact_code"]; + + $error = $this->commit(); + + if(PHPWS_Error::isError($error)) { + $message = $_SESSION["translate"]->it("The contact could not be saved to the database."); + $error = new PHPWS_Error("contacts", $message, "continue", 0); + $error->message("CNT_contacts"); + + $_REQUEST["CONTACTS_Contact_OP"] = "edit"; + $this->action(); + return; + } else { + $GLOBALS["CNT_contacts"]["content"] .= $_SESSION["translate"]->it("The contact was successfully saved.") . "<br />\n"; + $_REQUEST["CONTACTS_MAN_OP"] = "listcontacts"; + $_SESSION["CONTACTS_Manager"]->action(); + } + }// END FUNC _save + + + function _delete() { + if(!$_SESSION["OBJ_user"]->allow_access("contacts", "delete_contacts")) { + $message = $_SESSION["translate"]->it("Access to delete contact was denied due to lack of proper permissions."); + $error = new PHWPS_Error("contacts", "CONTACTS_Contact::_delete()", $message, "exit", 1); + $error->message(); + return FALSE; + } + + if(isset($_REQUEST["Contact_yes"])) { + $this->kill(); + $message = $_SESSION["translate"]->it("The contact [var1] was successfully deleted from the database.", "<b><i>" . $this->getLabel() . "</i></b>"); + $_SESSION["CONTACTS_Manager"]->message = new PHPWS_Message($message, "CNT_contacts"); + $_REQUEST["CONTACTS_MAN_OP"] = "listcontacts"; + $_SESSION["CONTACTS_Manager"]->action(); + + } elseif(isset($_REQUEST["Contact_no"])) { + $message = $_SESSION["translate"]->it("No contact was deleted from the database."); + $_SESSION["CONTACTS_Manager"]->message = new PHPWS_Message($message, "CNT_contacts"); + $_REQUEST["CONTACTS_MAN_OP"] = "listcontacts"; + $_REQUEST["CONTACTS_Manager"]->action(); + + } else { + $title = $_SESSION["translate"]->it("Delete Contact Confirmation"); + + $form = new EZform("CONTACTS_Contact_delete"); + $form->add("module", "hidden", "contacts"); + $form->add("CONTACTS_Contact_OP", "hidden", "delete"); + + $form->add("Contact_yes", "submit", $_SESSION["translate"]->it("Yes")); + $form->add("Contact_no", "submit", $_SESSION["translate"]->it("No")); + + $tags = array(); + $tags = $form->getTemplate(); + $tags["MESSAGE"] = $_SESSION["translate"]->it("Are you sure you want to delete this contact?"); + + $content = $GLOBALS["core"]->processTemplate($tags, "contacts", "delete_contact.tpl"); + $_SESSION["OBJ_layout"]->popbox($title, $content, NULL, "CNT_contacts"); + } + + }// END FUNC _delete + + + function action() { + switch($_REQUEST["CONTACTS_Contact_OP"]) { + case "edit": + $title = $_SESSION["translate"]->it("Edit Contact Information"); + $content = $this->_edit(); + break; + + case "save": + $this->_save(); + break; + + case "delete": + $this->_delete(); + break; + + default: + $title = "NO OP"; + $content = "This function is not yet implemented."; + } + + if(isset($content)) { + $GLOBALS["CNT_contacts"]["title"] = $title; + $GLOBALS["CNT_contacts"]["content"] = $content; + } + }// END FUNC action + + }// END CLASS CONTACTS_Contact Index: Manager.php =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/contacts/class/Manager.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** Manager.php 28 May 2003 21:31:11 -0000 1.4 --- Manager.php 29 May 2003 16:56:23 -0000 1.5 *************** *** 43,46 **** --- 43,47 ---- $GLOBALS["CNT_contacts"]["title"] = $_SESSION["translate"]->it("Contacts"); $GLOBALS["CNT_contacts"]["content"] .= $this->_menu(); + $GLOBALS["CNT_contacts"]["content"] .= "<a href=\"index.php?module=contacts&CONTACTS_MAN_OP=edit\">" . $_SESSION["translate"]->it("Add / Edit My Contact Information") . "</a>"; $GLOBALS["CNT_contacts"]["content"] .= $this->getList("contacts"); }// END FUNC _list *************** *** 80,85 **** --- 81,94 ---- + /* function _new() { $this->contact = new CONTACTS_Contact; + $_REQUEST["CONTACTS_Contact_OP"] = "edit"; + }// END FUNC _new + */ + + + function _edit() { + $this->contact = new CONTACTS_Contact($_REQUEST["PHPWS_MAN_ITEMS"][0]); $_REQUEST["CONTACTS_Contact_OP"] = "edit"; }// END FUNC _new |
From: <dts...@us...> - 2003-05-28 21:31:21
|
Update of /cvsroot/phpwebsite-comm/modules/contacts/templates In directory sc8-pr-cvs1:/tmp/cvs-serv29539/templates Added Files: delete_addresstypes.tpl delete_phonetypes.tpl edit_addresstypes.tpl edit_phonetypes.tpl Log Message: Got phone types and address types going --- NEW FILE: delete_addresstypes.tpl --- {START_FORM} {MESSAGE}<br /><br /> {ADDRESSTYPE_NO}  {ADDRESSTYPE_YES} {END_FORM} --- NEW FILE: delete_phonetypes.tpl --- {START_FORM} {MESSAGE}<br /><br /> {PHONETYPE_NO}  {PHONETYPE_YES} {END_FORM} --- NEW FILE: edit_addresstypes.tpl --- {START_FORM} {NAME_TEXT}:<br /> {ADDRESSTYPE_NAME}<br /> <br /> {ABBREVIATION_TEXT}:<br /> {ADDRESSTYPE_ABBREVIATION}<br /> <br /> {ADDRESSTYPE_SAVE} {END_FORM} --- NEW FILE: edit_phonetypes.tpl --- {START_FORM} {NAME_TEXT}:<br /> {PHONETYPE_NAME}<br /> <br /> {ABBREVIATION_TEXT}:<br /> {PHONETYPE_ABBREVIATION}<br /> <br /> {PHONETYPE_SAVE} {END_FORM} |
From: <dts...@us...> - 2003-05-28 21:31:20
|
Update of /cvsroot/phpwebsite-comm/modules/contacts/class In directory sc8-pr-cvs1:/tmp/cvs-serv29539/class Modified Files: AddressType.php Country.php Manager.php PhoneType.php Log Message: Got phone types and address types going Index: AddressType.php =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/contacts/class/AddressType.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** AddressType.php 28 May 2003 18:01:11 -0000 1.1 --- AddressType.php 28 May 2003 21:31:10 -0000 1.2 *************** *** 7,10 **** --- 7,188 ---- class CONTACTS_AddressType extends PHPWS_Item { + /** + * The name of the addresstype + * + * @var string + * @access private + */ + var $_name = NULL; + + /** + * The abbreviation/code of the addresstype + * + * @var string + * @access private + */ + var $_abbreviation = NULL; + + + function CONTACTS_AddressType($ADDRESSTYPE_ID = NULL) { + /* These vars are excluded on commit() */ + // $exclude = array(); + // $this->addExclude($exclude); + + $this->setTable("mod_contacts_addresstypes"); + + if(isset($ADDRESSTYPE_ID)) { + $this->setId($ADDRESSTYPE_ID); + $this->init(); + } + }// END FUNC CONTACTS_AddressType + + + function _edit() { + // Need to see if the userid matches the object owner + if(!$_SESSION["OBJ_user"]->allow_access("contacts","edit_addresstypes")) { + $message = $_SESSION["translate"]->it("Access to edit address types was denied due to lack of proper permissions."); + $error = new PHWPS_Error("contacts", "CONTACTS_AddressType::_edit()", $message, "exit", 1); + $error->message(); + return FALSE; + } + + /* Create form */ + $form = new EZform("CONTACTS_AddressType_edit"); + + /* AddressType Name */ + $form->add("AddressType_name", "text", $this->_name); + $form->setSize("AddressType_name", 33); + $form->setTab("AddressType_name", 1); + + /* AddressType Abbreviation */ + $form->add("AddressType_abbreviation", "text", $this->_abbreviation); + $form->setSize("AddressType_abbreviation", 5); + $form->setTab("AddressType_abbreviation", 2); + + /* Save Button */ + $form->add("AddressType_save", "submit", $_SESSION["translate"]->it("Save")); + $form->setTab("AddressType_save", 3); + + /* Module Information */ + $form->add("module", "hidden", "contacts"); + $form->add("CONTACTS_AddressType_OP", "hidden", "save"); + + $tags = array(); + $tags = $form->getTemplate(); + + $tags["NAME_TEXT"] = $_SESSION["translate"]->it("Address Type Name"); + $tags["ABBREVIATION_TEXT"] = $_SESSION["translate"]->it("Abbreviation"); + + return $GLOBALS["core"]->processTemplate($tags, "contacts", "edit_addresstypes.tpl"); + + }// END FUNC _edit + + + function _save() { + if(!$_SESSION["OBJ_user"]->allow_access("contacts", "edit_addresstypes")) { + $message = $_SESSION["translate"]->it("Access to save address types was denied due to lack of proper permissions."); + $error = new PHWPS_Error("contacts", "CONTACTS_AddressType::_save()", $message, "exit", 1); + $error->message(); + return FALSE; + } + + if(isset($_REQUEST["AddressType_name"])) + $this->_name = $_REQUEST["AddressType_name"]; + + $this->setLabel($this->_name); + + if(isset($_REQUEST["AddressType_abbreviation"])) + $this->_abbreviation = $_REQUEST["AddressType_abbreviation"]; + + $error = $this->commit(); + + if(PHPWS_Error::isError($error)) { + $message = $_SESSION["translate"]->it("The address type could not be saved to the database."); + $error = new PHPWS_Error("contacts", $message, "continue", 0); + $error->message("CNT_contacts"); + + $_REQUEST["CONTACTS_AddressType_OP"] = "edit"; + $this->action(); + return; + } else { + $GLOBALS["CNT_contacts"]["content"] .= $_SESSION["translate"]->it("The address type was successfully saved.") . "<br />\n"; + $_REQUEST["CONTACTS_MAN_OP"] = "listaddresstypes"; + $_SESSION["CONTACTS_Manager"]->action(); + } + }// END FUNC _save + + + function _delete() { + if(!$_SESSION["OBJ_user"]->allow_access("contacts", "delete_addresstypes")) { + $message = $_SESSION["translate"]->it("Access to delete address type was denied due to lack of proper permissions."); + $error = new PHWPS_Error("contacts", "CONTACTS_AddressType::_delete()", $message, "exit", 1); + $error->message(); + return FALSE; + } + + if(isset($_REQUEST["AddressType_yes"])) { + $this->kill(); + $message = $_SESSION["translate"]->it("The address type [var1] was successfully deleted from the database.", "<b><i>" . $this->getLabel() . "</i></b>"); + $_SESSION["CONTACTS_Manager"]->message = new PHPWS_Message($message, "CNT_contacts"); + $_REQUEST["CONTACTS_MAN_OP"] = "listaddresstypes"; + $_SESSION["CONTACTS_Manager"]->action(); + + } elseif(isset($_REQUEST["AddressType_no"])) { + $message = $_SESSION["translate"]->it("No address type was deleted from the database."); + $_SESSION["CONTACTS_Manager"]->message = new PHPWS_Message($message, "CNT_contacts"); + $_REQUEST["CONTACTS_MAN_OP"] = "listaddresstypes"; + $_SESSION["CONTACTS_Manager"]->action(); + + } else { + $title = $_SESSION["translate"]->it("Delete Address Type Confirmation"); + + $form = new EZform("CONTACTS_AddressType_delete"); + $form->add("module", "hidden", "contacts"); + $form->add("CONTACTS_AddressType_OP", "hidden", "delete"); + + $form->add("AddressType_yes", "submit", $_SESSION["translate"]->it("Yes")); + $form->add("AddressType_no", "submit", $_SESSION["translate"]->it("No")); + + $tags = array(); + $tags = $form->getTemplate(); + $tags["MESSAGE"] = $_SESSION["translate"]->it("Are you sure you want to delete this address type?"); + + $content = $GLOBALS["core"]->processTemplate($tags, "contacts", "delete_addresstypes.tpl"); + $_SESSION["OBJ_layout"]->popbox($title, $content, NULL, "CNT_contacts"); + } + + }// END FUNC _delete + + + function action() { + switch($_REQUEST["CONTACTS_AddressType_OP"]) { + case "edit": + if(isset($this->_id)) + $title = $_SESSION["translate"]->it("Edit Address Type"); + else + $title = $_SESSION["translate"]->it("New Address Type"); + $content = $this->_edit(); + break; + + case "save": + $this->_save(); + break; + + case "delete": + $this->_delete(); + break; + + default: + $title = "NO OP"; + $content = "This function is not yet implemented."; + } + + if(isset($content)) { + $GLOBALS["CNT_contacts"]["title"] = $title; + $GLOBALS["CNT_contacts"]["content"] = $content; + } + }// END FUNC action + + }// END CLASS CONTACTS_AddressType Index: Country.php =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/contacts/class/Country.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** Country.php 28 May 2003 20:34:52 -0000 1.3 --- Country.php 28 May 2003 21:31:11 -0000 1.4 *************** *** 129,133 **** } elseif(isset($_REQUEST["Country_no"])) { ! $message = $_SESSION["translate"]->it("No country was deleted fromt he database."); $_SESSION["CONTACTS_Manager"]->message = new PHPWS_Message($message, "CNT_contacts"); $_REQUEST["CONTACTS_MAN_OP"] = "listcountries"; --- 129,133 ---- } elseif(isset($_REQUEST["Country_no"])) { ! $message = $_SESSION["translate"]->it("No country was deleted from the database."); $_SESSION["CONTACTS_Manager"]->message = new PHPWS_Message($message, "CNT_contacts"); $_REQUEST["CONTACTS_MAN_OP"] = "listcountries"; Index: Manager.php =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/contacts/class/Manager.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** Manager.php 28 May 2003 20:34:52 -0000 1.3 --- Manager.php 28 May 2003 21:31:11 -0000 1.4 *************** *** 60,63 **** --- 60,64 ---- $GLOBALS["CNT_contacts"]["title"] = $_SESSION["translate"]->it("Phone Types"); $GLOBALS["CNT_contacts"]["content"] .= $this->_menu(); + $GLOBALS["CNT_contacts"]["content"] .= "<a href=\"index.php?module=contacts&CONTACTS_MAN_OP=newphonetype\">" . $_SESSION["translate"]->it("New Phone Type") . "</a>"; $GLOBALS["CNT_contacts"]["content"] .= $this->getList("phonetypes"); }// END FUNC _listPhoneTypes *************** *** 68,71 **** --- 69,73 ---- $GLOBALS["CNT_contacts"]["title"] = $_SESSION["translate"]->it("Address Types"); $GLOBALS["CNT_contacts"]["content"] .= $this->_menu(); + $GLOBALS["CNT_contacts"]["content"] .= "<a href=\"index.php?module=contacts&CONTACTS_MAN_OP=newaddresstype\">" . $_SESSION["translate"]->it("New Address Type") . "</a>"; $GLOBALS["CNT_contacts"]["content"] .= $this->getList("addresstypes"); }// END FUNC _listAddressTypes *************** *** 99,103 **** $this->country = new CONTACTS_Country($_REQUEST["PHPWS_MAN_ITEMS"][0]); $_REQUEST["CONTACTS_Country_OP"] = "delete"; ! }// END FUNC _editCountry --- 101,141 ---- $this->country = new CONTACTS_Country($_REQUEST["PHPWS_MAN_ITEMS"][0]); $_REQUEST["CONTACTS_Country_OP"] = "delete"; ! }// END FUNC _deleteCountries ! ! ! function _newAddressType() { ! $this->addresstype = new CONTACTS_AddressType; ! $_REQUEST["CONTACTS_AddressType_OP"] = "edit"; ! }// END FUNC _newAddressType ! ! ! function _editAddressType() { ! $this->addresstype = new CONTACTS_AddressType($_REQUEST["PHPWS_MAN_ITEMS"][0]); ! $_REQUEST["CONTACTS_AddressType_OP"] = "edit"; ! }// END FUNC _editAddressType ! ! ! function _deleteAddressType() { ! $this->addresstype = new CONTACTS_AddressType($_REQUEST["PHPWS_MAN_ITEMS"][0]); ! $_REQUEST["CONTACTS_AddressType_OP"] = "delete"; ! }// END FUNC _editAddressType ! ! ! function _newPhoneType() { ! $this->phonetype = new CONTACTS_PhoneType; ! $_REQUEST["CONTACTS_PhoneType_OP"] = "edit"; ! }// END FUNC _newPhoneType ! ! ! function _editPhoneType() { ! $this->phonetype = new CONTACTS_PhoneType($_REQUEST["PHPWS_MAN_ITEMS"][0]); ! $_REQUEST["CONTACTS_PhoneType_OP"] = "edit"; ! }// END FUNC _editPhoneType ! ! ! function _deletePhoneType() { ! $this->phonetype = new CONTACTS_PhoneType($_REQUEST["PHPWS_MAN_ITEMS"][0]); ! $_REQUEST["CONTACTS_PhoneType_OP"] = "delete"; ! }// END FUNC _editPhoneType *************** *** 135,141 **** --- 173,204 ---- break; + case "newphonetype": + $this->_newPhoneType(); + break; + + case "editphonetypes": + $this->_editPhoneType(); + break; + + case "deletephonetypes": + $this->_deletePhoneType(); + break; + case "listaddresstypes": $this->_listAddressTypes(); break; + + case "newaddresstype": + $this->_newAddressType(); + break; + + case "editaddresstypes": + $this->_editAddressType(); + break; + + case "deleteaddresstypes": + $this->_deleteAddressType(); + break; + } }// END FUNC action Index: PhoneType.php =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/contacts/class/PhoneType.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** PhoneType.php 28 May 2003 18:01:11 -0000 1.1 --- PhoneType.php 28 May 2003 21:31:11 -0000 1.2 *************** *** 7,10 **** --- 7,188 ---- class CONTACTS_PhoneType extends PHPWS_Item { + /** + * The name of the phonetype + * + * @var string + * @access private + */ + var $_name = NULL; + + /** + * The abbreviation/code of the phonetype + * + * @var string + * @access private + */ + var $_abbreviation = NULL; + + + function CONTACTS_PhoneType($PHONETYPE_ID = NULL) { + /* These vars are excluded on commit() */ + // $exclude = array(); + // $this->addExclude($exclude); + + $this->setTable("mod_contacts_phonetypes"); + + if(isset($PHONETYPE_ID)) { + $this->setId($PHONETYPE_ID); + $this->init(); + } + }// END FUNC CONTACTS_PhoneType + + + function _edit() { + // Need to see if the userid matches the object owner + if(!$_SESSION["OBJ_user"]->allow_access("contacts","edit_phonetypes")) { + $message = $_SESSION["translate"]->it("Access to edit phone types was denied due to lack of proper permissions."); + $error = new PHWPS_Error("contacts", "CONTACTS_PhoneType::_edit()", $message, "exit", 1); + $error->message(); + return FALSE; + } + + /* Create form */ + $form = new EZform("CONTACTS_PhoneType_edit"); + + /* PhoneType Name */ + $form->add("PhoneType_name", "text", $this->_name); + $form->setSize("PhoneType_name", 33); + $form->setTab("PhoneType_name", 1); + + /* PhoneType Abbreviation */ + $form->add("PhoneType_abbreviation", "text", $this->_abbreviation); + $form->setSize("PhoneType_abbreviation", 5); + $form->setTab("PhoneType_abbreviation", 2); + + /* Save Button */ + $form->add("PhoneType_save", "submit", $_SESSION["translate"]->it("Save")); + $form->setTab("PhoneType_save", 3); + + /* Module Information */ + $form->add("module", "hidden", "contacts"); + $form->add("CONTACTS_PhoneType_OP", "hidden", "save"); + + $tags = array(); + $tags = $form->getTemplate(); + + $tags["NAME_TEXT"] = $_SESSION["translate"]->it("Phone Type Name"); + $tags["ABBREVIATION_TEXT"] = $_SESSION["translate"]->it("Abbreviation"); + + return $GLOBALS["core"]->processTemplate($tags, "contacts", "edit_phonetypes.tpl"); + + }// END FUNC _edit + + + function _save() { + if(!$_SESSION["OBJ_user"]->allow_access("contacts", "edit_phonetypes")) { + $message = $_SESSION["translate"]->it("Access to save phone types was denied due to lack of proper permissions."); + $error = new PHWPS_Error("contacts", "CONTACTS_PhoneType::_save()", $message, "exit", 1); + $error->message(); + return FALSE; + } + + if(isset($_REQUEST["PhoneType_name"])) + $this->_name = $_REQUEST["PhoneType_name"]; + + $this->setLabel($this->_name); + + if(isset($_REQUEST["PhoneType_abbreviation"])) + $this->_abbreviation = $_REQUEST["PhoneType_abbreviation"]; + + $error = $this->commit(); + + if(PHPWS_Error::isError($error)) { + $message = $_SESSION["translate"]->it("The phone type could not be saved to the database."); + $error = new PHPWS_Error("contacts", $message, "continue", 0); + $error->message("CNT_contacts"); + + $_REQUEST["CONTACTS_PhoneType_OP"] = "edit"; + $this->action(); + return; + } else { + $GLOBALS["CNT_contacts"]["content"] .= $_SESSION["translate"]->it("The phone type was successfully saved.") . "<br />\n"; + $_REQUEST["CONTACTS_MAN_OP"] = "listphonetypes"; + $_SESSION["CONTACTS_Manager"]->action(); + } + }// END FUNC _save + + + function _delete() { + if(!$_SESSION["OBJ_user"]->allow_access("contacts", "delete_phonetypes")) { + $message = $_SESSION["translate"]->it("Access to delete phone type was denied due to lack of proper permissions."); + $error = new PHWPS_Error("contacts", "CONTACTS_PhoneType::_delete()", $message, "exit", 1); + $error->message(); + return FALSE; + } + + if(isset($_REQUEST["PhoneType_yes"])) { + $this->kill(); + $message = $_SESSION["translate"]->it("The phone type [var1] was successfully deleted from the database.", "<b><i>" . $this->getLabel() . "</i></b>"); + $_SESSION["CONTACTS_Manager"]->message = new PHPWS_Message($message, "CNT_contacts"); + $_REQUEST["CONTACTS_MAN_OP"] = "listphonetypes"; + $_SESSION["CONTACTS_Manager"]->action(); + + } elseif(isset($_REQUEST["PhoneType_no"])) { + $message = $_SESSION["translate"]->it("No phone type was deleted from the database."); + $_SESSION["CONTACTS_Manager"]->message = new PHPWS_Message($message, "CNT_contacts"); + $_REQUEST["CONTACTS_MAN_OP"] = "listphonetypes"; + $_SESSION["CONTACTS_Manager"]->action(); + + } else { + $title = $_SESSION["translate"]->it("Delete Phone Type Confirmation"); + + $form = new EZform("CONTACTS_PhoneType_delete"); + $form->add("module", "hidden", "contacts"); + $form->add("CONTACTS_PhoneType_OP", "hidden", "delete"); + + $form->add("PhoneType_yes", "submit", $_SESSION["translate"]->it("Yes")); + $form->add("PhoneType_no", "submit", $_SESSION["translate"]->it("No")); + + $tags = array(); + $tags = $form->getTemplate(); + $tags["MESSAGE"] = $_SESSION["translate"]->it("Are you sure you want to delete this phone type?"); + + $content = $GLOBALS["core"]->processTemplate($tags, "contacts", "delete_phonetypes.tpl"); + $_SESSION["OBJ_layout"]->popbox($title, $content, NULL, "CNT_contacts"); + } + + }// END FUNC _delete + + + function action() { + switch($_REQUEST["CONTACTS_PhoneType_OP"]) { + case "edit": + if(isset($this->_id)) + $title = $_SESSION["translate"]->it("Edit Phone Type"); + else + $title = $_SESSION["translate"]->it("New Phone Type"); + $content = $this->_edit(); + break; + + case "save": + $this->_save(); + break; + + case "delete": + $this->_delete(); + break; + + default: + $title = "NO OP"; + $content = "This function is not yet implemented."; + } + + if(isset($content)) { + $GLOBALS["CNT_contacts"]["title"] = $title; + $GLOBALS["CNT_contacts"]["content"] = $content; + } + }// END FUNC action + + }// END CLASS CONTACTS_PhoneType |
From: <dts...@us...> - 2003-05-28 20:50:47
|
Update of /cvsroot/phpwebsite-comm/modules/contacts/boost In directory sc8-pr-cvs1:/tmp/cvs-serv11254/boost Modified Files: install.sql Log Message: Forgot contact_id for relations Index: install.sql =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/contacts/boost/install.sql,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** install.sql 27 May 2003 16:47:49 -0000 1.1 --- install.sql 28 May 2003 20:50:39 -0000 1.2 *************** *** 68,72 **** hidden smallint NOT NULL default '0', approved smallint NOT NULL default '1', ! type_id int NOT NULL default '0', street1 varchar(30) NOT NULL default '', street2 varchar(30) default '', --- 68,73 ---- hidden smallint NOT NULL default '0', approved smallint NOT NULL default '1', ! contact_id int NOT NULL, ! type_id int NOT NULL, street1 varchar(30) NOT NULL default '', street2 varchar(30) default '', *************** *** 107,111 **** hidden smallint NOT NULL default '0', approved smallint NOT NULL default '1', ! type_id int NOT NULL default '0', phonenumber varchar(50) NOT NULL, PRIMARY KEY (id) --- 108,113 ---- hidden smallint NOT NULL default '0', approved smallint NOT NULL default '1', ! contact_id int NOT NULL, ! type_id int NOT NULL, phonenumber varchar(50) NOT NULL, PRIMARY KEY (id) |
From: <dts...@us...> - 2003-05-28 20:35:33
|
Update of /cvsroot/phpwebsite-comm/modules/contacts/class In directory sc8-pr-cvs1:/tmp/cvs-serv3482/class Modified Files: Country.php Manager.php Log Message: Progress! Index: Country.php =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/contacts/class/Country.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** Country.php 28 May 2003 18:37:14 -0000 1.2 --- Country.php 28 May 2003 20:34:52 -0000 1.3 *************** *** 32,36 **** if(isset($COUNTRY_ID)) { ! $this->setId($MESSAGE_ID); $this->init(); } --- 32,36 ---- if(isset($COUNTRY_ID)) { ! $this->setId($COUNTRY_ID); $this->init(); } *************** *** 80,84 **** function _save() { ! if(!$_SESSION["OBJ_user"]->allow_access("contacts", "edit_contacts")) { $message = $_SESSION["translate"]->it("Access to save country was denied due to lack of proper permissions."); $error = new PHWPS_Error("contacts", "CONTACTS_Country::_save()", $message, "exit", 1); --- 80,84 ---- function _save() { ! if(!$_SESSION["OBJ_user"]->allow_access("contacts", "edit_countries")) { $message = $_SESSION["translate"]->it("Access to save country was denied due to lack of proper permissions."); $error = new PHWPS_Error("contacts", "CONTACTS_Country::_save()", $message, "exit", 1); *************** *** 113,116 **** --- 113,158 ---- + function _delete() { + if(!$_SESSION["OBJ_user"]->allow_access("contacts", "delete_countries")) { + $message = $_SESSION["translate"]->it("Access to delete country was denied due to lack of proper permissions."); + $error = new PHWPS_Error("contacts", "CONTACTS_Country::_delete()", $message, "exit", 1); + $error->message(); + return FALSE; + } + + if(isset($_REQUEST["Country_yes"])) { + $this->kill(); + $message = $_SESSION["translate"]->it("The country [var1] was successfully deleted from the database.", "<b><i>" . $this->getLabel() . "</i></b>"); + $_SESSION["CONTACTS_Manager"]->message = new PHPWS_Message($message, "CNT_contacts"); + $_REQUEST["CONTACTS_MAN_OP"] = "listcountries"; + $_SESSION["CONTACTS_Manager"]->action(); + + } elseif(isset($_REQUEST["Country_no"])) { + $message = $_SESSION["translate"]->it("No country was deleted fromt he database."); + $_SESSION["CONTACTS_Manager"]->message = new PHPWS_Message($message, "CNT_contacts"); + $_REQUEST["CONTACTS_MAN_OP"] = "listcountries"; + $_REQUEST["CONTACTS_Manager"]->action(); + + } else { + $title = $_SESSION["translate"]->it("Delete Country Confirmation"); + + $form = new EZform("CONTACTS_Country_delete"); + $form->add("module", "hidden", "contacts"); + $form->add("CONTACTS_Country_OP", "hidden", "delete"); + + $form->add("Country_yes", "submit", $_SESSION["translate"]->it("Yes")); + $form->add("Country_no", "submit", $_SESSION["translate"]->it("No")); + + $tags = array(); + $tags = $form->getTemplate(); + $tags["MESSAGE"] = $_SESSION["translate"]->it("Are you sure you want to delete this country?"); + + $content = $GLOBALS["core"]->processTemplate($tags, "contacts", "delete_country.tpl"); + $_SESSION["OBJ_layout"]->popbox($title, $content, NULL, "CNT_contacts"); + } + + }// END FUNC _delete + + function action() { switch($_REQUEST["CONTACTS_Country_OP"]) { *************** *** 125,128 **** --- 167,174 ---- case "save": $this->_save(); + break; + + case "delete": + $this->_delete(); break; Index: Manager.php =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/contacts/class/Manager.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** Manager.php 28 May 2003 18:37:14 -0000 1.2 --- Manager.php 28 May 2003 20:34:52 -0000 1.3 *************** *** 12,15 **** --- 12,17 ---- var $addresstype = NULL; + var $message = NULL; + function CONTACTS_Manager() { $this->setModule("contacts"); *************** *** 88,92 **** --- 90,109 ---- + function _editCountry() { + $this->country = new CONTACTS_Country($_REQUEST["PHPWS_MAN_ITEMS"][0]); + $_REQUEST["CONTACTS_Country_OP"] = "edit"; + }// END FUNC _editCountry + + + function _deleteCountries() { + $this->country = new CONTACTS_Country($_REQUEST["PHPWS_MAN_ITEMS"][0]); + $_REQUEST["CONTACTS_Country_OP"] = "delete"; + }// END FUNC _editCountry + + function action() { + if(PHPWS_Message::isMessage($this->message)) + $this->message->display(); + switch($_REQUEST["CONTACTS_MAN_OP"]) { case "new": *************** *** 94,101 **** break; - case "newcountry": - $this->_newCountry(); - break; - case "view": $this->_view(); --- 111,114 ---- *************** *** 106,111 **** break; case "editcountries": ! $this->_editCountries(); break; --- 119,132 ---- break; + case "newcountry": + $this->_newCountry(); + break; + case "editcountries": ! $this->_editCountry(); ! break; ! ! case "deletecountries": ! $this->_deleteCountries(); break; |
From: <dts...@us...> - 2003-05-28 20:35:33
|
Update of /cvsroot/phpwebsite-comm/modules/contacts/conf In directory sc8-pr-cvs1:/tmp/cvs-serv3482/conf Modified Files: manager.php Log Message: Progress! Index: manager.php =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/contacts/conf/manager.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** manager.php 28 May 2003 18:37:16 -0000 1.3 --- manager.php 28 May 2003 20:34:58 -0000 1.4 *************** *** 47,55 **** "id"=>NULL ); ! $countriesActions = array( "edit"=>"Edit", ! "delete"=>"Delete"); ! $countriesPermissions = array( "edit"=>"edit_countries", ! "delete"=>"delete_countries"); $countriesPaging = array( "op"=>"CONTACTS_MAN_OP=listcountries", --- 47,55 ---- "id"=>NULL ); ! $countriesActions = array( "editcountries"=>"Edit", ! "deletecountries"=>"Delete"); ! $countriesPermissions = array( "editcountries"=>"edit_countries", ! "deletecountries"=>"delete_countries"); $countriesPaging = array( "op"=>"CONTACTS_MAN_OP=listcountries", *************** *** 68,78 **** "id"=>NULL ); ! $phonetypesActions = array( "view"=>"View", ! "edit"=>"Edit", ! "delete"=>"Delete"); ! $phonetypesPermissions = array( "view"=>NULL, ! "edit"=>"edit_phonetypes", ! "delete"=>"delete_phonetypes"); $phonetypesPaging = array( "op"=>"CONTACTS_MAN_OP=listphonetypes", --- 68,76 ---- "id"=>NULL ); ! $phonetypesActions = array( "editphonetypes"=>"Edit", ! "deletephonetypes"=>"Delete"); ! $phonetypesPermissions = array( "editphonetypes"=>"edit_phonetypes", ! "deletephonetypes"=>"delete_phonetypes"); $phonetypesPaging = array( "op"=>"CONTACTS_MAN_OP=listphonetypes", *************** *** 91,101 **** "id"=>NULL ); ! $addresstypesActions = array( "view"=>"View", ! "edit"=>"Edit", ! "delete"=>"Delete"); ! $addresstypesPermissions = array( "view"=>NULL, ! "edit"=>"edit_addresstypes", ! "delete"=>"delete_addresstypes"); $addresstypesPaging = array( "op"=>"CONTACTS_MAN_OP=listaddresstypes", --- 89,97 ---- "id"=>NULL ); ! $addresstypesActions = array( "editaddresstypes"=>"Edit", ! "deleteaddresstypes"=>"Delete"); ! $addresstypesPermissions = array( "editaddresstypes"=>"edit_addresstypes", ! "deleteaddresstypes"=>"delete_addresstypes"); $addresstypesPaging = array( "op"=>"CONTACTS_MAN_OP=listaddresstypes", |
From: <dts...@us...> - 2003-05-28 20:35:04
|
Update of /cvsroot/phpwebsite-comm/modules/contacts/templates In directory sc8-pr-cvs1:/tmp/cvs-serv3482/templates Added Files: delete_countries.tpl Log Message: Progress! --- NEW FILE: delete_countries.tpl --- {START_FORM} {MESSAGE}<br /><br /> {COUNTRY_NO}  {COUNTRY_YES} {END_FORM} |
From: <dts...@us...> - 2003-05-28 19:52:04
|
Update of /cvsroot/phpwebsite-comm/modules/contacts/templates/phonetypes In directory sc8-pr-cvs1:/tmp/cvs-serv16031/templates/phonetypes Added Files: list.tpl row.tpl Log Message: Adding templates in --- NEW FILE: list.tpl --- <table border="0" width="100%" cellspacing="1" cellpadding="4" align="center"> <tr class="bg_medium"> <td class="smalltext" align="center">{SELECT_LABEL}</td> <td width="75%" class="smalltext"><b>{NAME_LABEL}</b></td> </tr> {LIST_ITEMS} <!-- BEGIN navigation --> <tr class="bg_medium"> <td>{NAV_LIMITS}    {NAV_BACKWARD} {NAV_SECTIONS} {NAV_FORWARD}</td> <td align="right">{ACTION_SELECT} {ACTION_BUTTON}</td> </tr> <!-- END navigation --> </table> --- NEW FILE: row.tpl --- <tr{ROW_CLASS}> <td align="center">{SELECT}</td> <td class="smalltext">{NAME}</td> </tr> |
From: <dts...@us...> - 2003-05-28 19:52:03
|
Update of /cvsroot/phpwebsite-comm/modules/contacts/templates/contacts In directory sc8-pr-cvs1:/tmp/cvs-serv16031/templates/contacts Added Files: list.tpl row.tpl Log Message: Adding templates in --- NEW FILE: list.tpl --- <table border="0" width="100%" cellspacing="1" cellpadding="4" align="center"> <tr class="bg_medium"> <td class="smalltext" align="center">{SELECT_LABEL}</td> <td class="smalltext"><b>{FAMILYNAME_LABEL}</b></td> <td class="smalltext"><b>{GIVENNAME_LABEL}</b></td> </tr> {LIST_ITEMS} <!-- BEGIN navigation --> <tr class="bg_medium"> <td>{NAV_LIMITS}    {NAV_BACKWARD} {NAV_SECTIONS} {NAV_FORWARD}</td> <td align="right">{ACTION_SELECT} {ACTION_BUTTON}</td> </tr> <!-- END navigation --> </table> --- NEW FILE: row.tpl --- <tr{ROW_CLASS}> <td align="center">{SELECT}</td> <td class="smalltext">{FAMILYNAME}</td> <td class="smalltext">{GIVENNAME}</td> </tr> |
From: <dts...@us...> - 2003-05-28 19:52:02
|
Update of /cvsroot/phpwebsite-comm/modules/contacts/templates/addresstypes In directory sc8-pr-cvs1:/tmp/cvs-serv16031/templates/addresstypes Added Files: list.tpl row.tpl Log Message: Adding templates in --- NEW FILE: list.tpl --- <table border="0" width="100%" cellspacing="1" cellpadding="4" align="center"> <tr class="bg_medium"> <td class="smalltext" align="center">{SELECT_LABEL}</td> <td width="75%" class="smalltext"><b>{NAME_LABEL}</b></td> </tr> {LIST_ITEMS} <!-- BEGIN navigation --> <tr class="bg_medium"> <td>{NAV_LIMITS}    {NAV_BACKWARD} {NAV_SECTIONS} {NAV_FORWARD}</td> <td align="right">{ACTION_SELECT} {ACTION_BUTTON}</td> </tr> <!-- END navigation --> </table> --- NEW FILE: row.tpl --- <tr{ROW_CLASS}> <td align="center">{SELECT}</td> <td class="smalltext">{NAME}</td> </tr> |
From: <dts...@us...> - 2003-05-28 19:49:22
|
Update of /cvsroot/phpwebsite-comm/modules/contacts/templates/addresstypes In directory sc8-pr-cvs1:/tmp/cvs-serv14393/templates/addresstypes Log Message: Directory /cvsroot/phpwebsite-comm/modules/contacts/templates/addresstypes added to the repository |
From: <dts...@us...> - 2003-05-28 19:49:21
|
Update of /cvsroot/phpwebsite-comm/modules/contacts/templates/phonetypes In directory sc8-pr-cvs1:/tmp/cvs-serv14393/templates/phonetypes Log Message: Directory /cvsroot/phpwebsite-comm/modules/contacts/templates/phonetypes added to the repository |
From: <dts...@us...> - 2003-05-28 19:49:20
|
Update of /cvsroot/phpwebsite-comm/modules/contacts/templates/contacts In directory sc8-pr-cvs1:/tmp/cvs-serv14393/templates/contacts Log Message: Directory /cvsroot/phpwebsite-comm/modules/contacts/templates/contacts added to the repository |
From: <dts...@us...> - 2003-05-28 18:37:51
|
Update of /cvsroot/phpwebsite-comm/modules/contacts/class In directory sc8-pr-cvs1:/tmp/cvs-serv17444/class Modified Files: Country.php Manager.php Log Message: Fleshing things out more Index: Country.php =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/contacts/class/Country.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** Country.php 27 May 2003 21:51:20 -0000 1.1 --- Country.php 28 May 2003 18:37:14 -0000 1.2 *************** *** 56,62 **** /* Country Abbreviation */ ! $form->add("Country_abbreviation", "text", $this->_abbreviation); ! $form->setSize("Country_abbreviation", 5); ! $form->setTab("Country_abbreviation", 2); /* Save Button */ --- 56,62 ---- /* Country Abbreviation */ ! $form->add("Country_code", "text", $this->_code); ! $form->setSize("Country_code", 5); ! $form->setTab("Country_code", 2); /* Save Button */ *************** *** 72,76 **** $tags["COUNTRY_TEXT"] = $_SESSION["translate"]->it("Country"); ! $tags["ABBREVIATION_TEXT"] = $_SESSION["translate"]->it("Abbreviation"); return $GLOBALS["core"]->processTemplate($tags, "contacts", "edit_countries.tpl"); --- 72,76 ---- $tags["COUNTRY_TEXT"] = $_SESSION["translate"]->it("Country"); ! $tags["CODE_TEXT"] = $_SESSION["translate"]->it("Abbreviation"); return $GLOBALS["core"]->processTemplate($tags, "contacts", "edit_countries.tpl"); *************** *** 90,95 **** $this->_country = $_REQUEST["Country_country"]; ! if(isset($_REQUEST["Country_abbreviation"])) ! $this->_abbreviation = $_REQUEST["Country_abbreviation"]; $error = $this->commit(); --- 90,97 ---- $this->_country = $_REQUEST["Country_country"]; ! $this->setLabel($this->_country); ! ! if(isset($_REQUEST["Country_code"])) ! $this->_code = $_REQUEST["Country_code"]; $error = $this->commit(); Index: Manager.php =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/contacts/class/Manager.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** Manager.php 27 May 2003 21:51:20 -0000 1.1 --- Manager.php 28 May 2003 18:37:14 -0000 1.2 *************** *** 32,36 **** $links[] = "<a href=\"index.php?module=contacts&CONTACTS_MAN_OP=listaddresstypes\">" . $_SESSION["translate"]->it("List Address Types") . "</a>"; ! $menu = "<div align=\"right\">" . implode(" |#&160;", $links) . "</div><br />"; }// END FUNC _menu --- 32,37 ---- $links[] = "<a href=\"index.php?module=contacts&CONTACTS_MAN_OP=listaddresstypes\">" . $_SESSION["translate"]->it("List Address Types") . "</a>"; ! $menu = "<div align=\"right\">" . implode(" | ", $links) . "</div><br />"; ! return $menu; }// END FUNC _menu *************** *** 39,42 **** --- 40,44 ---- $this->setTable("mod_contacts_contacts"); $GLOBALS["CNT_contacts"]["title"] = $_SESSION["translate"]->it("Contacts"); + $GLOBALS["CNT_contacts"]["content"] .= $this->_menu(); $GLOBALS["CNT_contacts"]["content"] .= $this->getList("contacts"); }// END FUNC _list *************** *** 46,49 **** --- 48,53 ---- $this->setTable("mod_contacts_countries"); $GLOBALS["CNT_contacts"]["title"] = $_SESSION["translate"]->it("Countries"); + $GLOBALS["CNT_contacts"]["content"] .= $this->_menu(); + $GLOBALS["CNT_contacts"]["content"] .= "<a href=\"index.php?module=contacts&CONTACTS_MAN_OP=newcountry\">" . $_SESSION["translate"]->it("New Country") . "</a>"; $GLOBALS["CNT_contacts"]["content"] .= $this->getList("countries"); }// END FUNC _listCountries *************** *** 53,56 **** --- 57,61 ---- $this->setTable("mod_contacts_phonetypes"); $GLOBALS["CNT_contacts"]["title"] = $_SESSION["translate"]->it("Phone Types"); + $GLOBALS["CNT_contacts"]["content"] .= $this->_menu(); $GLOBALS["CNT_contacts"]["content"] .= $this->getList("phonetypes"); }// END FUNC _listPhoneTypes *************** *** 60,63 **** --- 65,69 ---- $this->setTable("mod_contacts_addresstypes"); $GLOBALS["CNT_contacts"]["title"] = $_SESSION["translate"]->it("Address Types"); + $GLOBALS["CNT_contacts"]["content"] .= $this->_menu(); $GLOBALS["CNT_contacts"]["content"] .= $this->getList("addresstypes"); }// END FUNC _listAddressTypes *************** *** 76,83 **** --- 82,99 ---- + function _newCountry() { + $this->country = new CONTACTS_Country; + $_REQUEST["CONTACTS_Country_OP"] = "edit"; + }// END FUNC _newCountry + + function action() { switch($_REQUEST["CONTACTS_MAN_OP"]) { case "new": $this->_new(); + break; + + case "newcountry": + $this->_newCountry(); break; |
From: <dts...@us...> - 2003-05-28 18:37:22
|
Update of /cvsroot/phpwebsite-comm/modules/contacts/templates/countries In directory sc8-pr-cvs1:/tmp/cvs-serv17444/templates/countries Added Files: list.tpl row.tpl Log Message: Fleshing things out more --- NEW FILE: list.tpl --- <table border="0" width="100%" cellspacing="1" cellpadding="4" align="center"> <tr class="bg_medium"> <td class="smalltext" align="center">{SELECT_LABEL}</td> <td width="75%" class="smalltext"><b>{COUNTRY_LABEL}</b></td> </tr> {LIST_ITEMS} <!-- BEGIN navigation --> <tr class="bg_medium"> <td>{NAV_LIMITS}    {NAV_BACKWARD} {NAV_SECTIONS} {NAV_FORWARD}</td> <td align="right">{ACTION_SELECT} {ACTION_BUTTON}</td> </tr> <!-- END navigation --> </table> --- NEW FILE: row.tpl --- <tr{ROW_CLASS}> <td align="center">{SELECT}</td> <td class="smalltext">{COUNTRY}</td> </tr> |
From: <dts...@us...> - 2003-05-28 18:37:21
|
Update of /cvsroot/phpwebsite-comm/modules/contacts/templates In directory sc8-pr-cvs1:/tmp/cvs-serv17444/templates Added Files: edit_countries.tpl Log Message: Fleshing things out more --- NEW FILE: edit_countries.tpl --- {START_FORM} {COUNTRY_TEXT}:<br /> {COUNTRY_COUNTRY}<br /> <br /> {CODE_TEXT}:<br /> {COUNTRY_CODE}<br /> <br /> {COUNTRY_SAVE} {END_FORM} |