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-06-03 16:23:18
|
Update of /cvsroot/phpwebsite-comm/modules/phpwsbb/conf
In directory sc8-pr-cvs1:/tmp/cvs-serv14102/conf
Modified Files:
manager.php menuman.php
Log Message:
Updates for adding replies and lastreply fields
Index: manager.php
===================================================================
RCS file: /cvsroot/phpwebsite-comm/modules/phpwsbb/conf/manager.php,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** manager.php 23 May 2003 04:09:28 -0000 1.4
--- manager.php 3 Jun 2003 16:22:43 -0000 1.5
***************
*** 14,19 ****
$messagesColumns = array( "label"=>$_SESSION["translate"]->it("Subject"),
"owner"=>$_SESSION["translate"]->it("Poster"),
! "updated"=>$_SESSION["translate"]->it("Last Post"),
! //"replies"=>$_SESSION["translate"]->it("Replies"),
"id"=>NULL,
"locked"=>NULL,
--- 14,19 ----
$messagesColumns = array( "label"=>$_SESSION["translate"]->it("Subject"),
"owner"=>$_SESSION["translate"]->it("Poster"),
! "replies"=>$_SESSION["translate"]->it("Replies"),
! "lastreply"=>$_SESSION["translate"]->it("Last Reply"),
"id"=>NULL,
"locked"=>NULL,
***************
*** 21,25 ****
/* The actions to show in the defined "saved" list and their labels */
- /*
$messagesActions = array( "view"=>"View",
"edit"=>"Edit",
--- 21,24 ----
***************
*** 28,36 ****
"lock"=>"Lock"
);
- */
- $messagesActions = array();
/* The permissions associated with the defined actions above */
- /*
$messagesPermissions = array( "view"=>NULL,
"edit"=>"edit_messages",
--- 27,32 ----
***************
*** 39,44 ****
"lock"=>"lock_threads"
);
- */
- $messagesPermissions = array();
/* The paging parameters for the list */
--- 35,38 ----
Index: menuman.php
===================================================================
RCS file: /cvsroot/phpwebsite-comm/modules/phpwsbb/conf/menuman.php,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** menuman.php 22 May 2003 02:53:35 -0000 1.1
--- menuman.php 3 Jun 2003 16:22:43 -0000 1.2
***************
*** 4,7 ****
* @author Don Seiler <do...@NO...>
*/
! $link[$_SESSION['translate']->it("Bulletin Board")] = "index.php?module=phpwsbb&PHPWSBB_MAN_op=list";
?>
--- 4,7 ----
* @author Don Seiler <do...@NO...>
*/
! $link[$_SESSION['translate']->it("Bulletin Board")] = "index.php?module=phpwsbb&PHPWSBB_MAN_OP=list";
?>
|
|
From: <dts...@us...> - 2003-06-03 16:23:16
|
Update of /cvsroot/phpwebsite-comm/modules/phpwsbb/class
In directory sc8-pr-cvs1:/tmp/cvs-serv14102/class
Modified Files:
Manager.php Message.php
Log Message:
Updates for adding replies and lastreply fields
Index: Manager.php
===================================================================
RCS file: /cvsroot/phpwebsite-comm/modules/phpwsbb/class/Manager.php,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** Manager.php 23 May 2003 04:09:28 -0000 1.5
--- Manager.php 3 Jun 2003 16:22:41 -0000 1.6
***************
*** 8,11 ****
--- 8,19 ----
var $message = NULL;
+
+ /**
+ * The message object
+ *
+ * @var PHPWSBB_Message
+ * @access public
+ */
+ var $phpwsbb_message = NULL;
function PHPWSBB_Manager() {
***************
*** 41,46 ****
function _view($id) {
! $this->message = new PHPWSBB_Message($id[0]);
! $_REQUEST["PHPWSBB_OP"] = "view";
}// END FUNC _view
--- 49,54 ----
function _view($id) {
! $this->phpwsbb_message = new PHPWSBB_Message($id[0]);
! $_REQUEST["PHPWSBB_MESSAGE_OP"] = "view";
}// END FUNC _view
***************
*** 48,53 ****
function _new() {
// Will pid be passed along so I don't need separate reply() function?
! $this->message = new PHPWSBB_Message;
! $_REQUEST["PHPWSBB_OP"] = "edit";
}// END FUNC _new
--- 56,61 ----
function _new() {
// Will pid be passed along so I don't need separate reply() function?
! $this->phpwsbb_message = new PHPWSBB_Message;
! $_REQUEST["PHPWSBB_MESSAGE_OP"] = "edit";
}// END FUNC _new
Index: Message.php
===================================================================
RCS file: /cvsroot/phpwebsite-comm/modules/phpwsbb/class/Message.php,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** Message.php 23 May 2003 04:09:28 -0000 1.6
--- Message.php 3 Jun 2003 16:22:41 -0000 1.7
***************
*** 69,73 ****
* @access private
*/
! var $_lastpost = NULL;
/**
--- 69,73 ----
* @access private
*/
! var $_lastreply = NULL;
/**
***************
*** 81,85 ****
function PHPWSBB_Message($MESSAGE_ID = NULL) {
/* These variable are excluded when calling commit() */
! $exclude = array("children","_replies","_lastpost");
$this->addExclude($exclude);
--- 81,85 ----
function PHPWSBB_Message($MESSAGE_ID = NULL) {
/* These variable are excluded when calling commit() */
! $exclude = array("children");
$this->addExclude($exclude);
***************
*** 115,119 ****
$tags["LOCKED"] = $this->_locked;
$tags["REPLIES"] = $this->_replies;
! $tags["LASTPOST"] = $this->_lastpost;
$poster = $this->getOwner();
--- 115,119 ----
$tags["LOCKED"] = $this->_locked;
$tags["REPLIES"] = $this->_replies;
! $tags["LASTREPLY"] = $this->_lastreply;
$poster = $this->getOwner();
***************
*** 125,129 ****
$tags["POSTED"] = $_SESSION["translate"]->it("Posted by [var1] on [var2]", $poster, $this->getCreated());
! $tags["REPLY"] = "<a href=\"./index.php?module=phpwsbb&PHPWSBB_OP=reply&PHPWSBB_pid=" . $this->getId() . "\">" . $_SESSION["translate"]->it("Reply to Message") . "</a>";
// Need to cycle through all children still
--- 125,129 ----
$tags["POSTED"] = $_SESSION["translate"]->it("Posted by [var1] on [var2]", $poster, $this->getCreated());
! $tags["REPLY"] = "<a href=\"./index.php?module=phpwsbb&PHPWSBB_MESSAGE_OP=reply&PHPWSBB_pid=" . $this->getId() . "\">" . $_SESSION["translate"]->it("Reply to Message") . "</a>";
// Need to cycle through all children still
***************
*** 186,190 ****
/* Module Information */
$form->add("module", "hidden", "phpwsbb");
! $form->add("PHPWSBB_OP", "hidden", "save");
$form->add("Message_pid", "hidden", $_REQUEST["Message_pid"]);
--- 186,190 ----
/* Module Information */
$form->add("module", "hidden", "phpwsbb");
! $form->add("PHPWSBB_MESSAGE_OP", "hidden", "save");
$form->add("Message_pid", "hidden", $_REQUEST["Message_pid"]);
***************
*** 232,241 ****
$error->message("CNT_phpwsbb");
! $_REQUEST["PHPWSBB_OP"] = "edit";
$this->action();
return;
} else {
$GLOBALS["CNT_phpwsbb"]["content"] .= $_SESSION["translate"]->it("Your message was successfully saved.") . "<br />\n";
! $_REQUEST["PHPWSBB_OP"] = "view";
$this->action();
}
--- 232,241 ----
$error->message("CNT_phpwsbb");
! $_REQUEST["PHPWSBB_MESSAGE_OP"] = "edit";
$this->action();
return;
} else {
$GLOBALS["CNT_phpwsbb"]["content"] .= $_SESSION["translate"]->it("Your message was successfully saved.") . "<br />\n";
! $_REQUEST["PHPWSBB_MESSAGE_OP"] = "view";
$this->action();
}
***************
*** 244,248 ****
function action() {
! switch($_REQUEST["PHPWSBB_OP"]) {
case "edit":
if(isset($this->_id))
--- 244,248 ----
function action() {
! switch($_REQUEST["PHPWSBB_MESSAGE_OP"]) {
case "edit":
if(isset($this->_id))
|
|
From: <dts...@us...> - 2003-06-03 16:22:50
|
Update of /cvsroot/phpwebsite-comm/modules/phpwsbb/templates/manager
In directory sc8-pr-cvs1:/tmp/cvs-serv14102/templates/manager
Modified Files:
list.tpl row.tpl
Log Message:
Updates for adding replies and lastreply fields
Index: list.tpl
===================================================================
RCS file: /cvsroot/phpwebsite-comm/modules/phpwsbb/templates/manager/list.tpl,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** list.tpl 23 May 2003 04:09:28 -0000 1.3
--- list.tpl 3 Jun 2003 16:22:44 -0000 1.4
***************
*** 1,16 ****
<table border="0" width="100%" cellspacing="1" cellpadding="4">
! <tr><td class="smalltext" colspan="3"><b>{TITLE}</b> {NAV_INFO}</td></tr>
! <tr>
<td width="100%" class="smalltext">{LABEL_LABEL}</td>
<td align="center" valign="middle" class="smalltext">{OWNER_LABEL}</td>
<td align="center" valign="middle" class="smalltext">{REPLIES_LABEL}</td>
! <td align="center" valign="middle" nowrap="nowrap" class="smalltext">{CREATED_LABEL}</td>
</tr>
{LIST_ITEMS}
!
! <!-- BEGIN ACTION_STUFF -->
<tr class="bg_medium">
! <td colspan="3">{NAV_LIMITS}    {NAV_BACKWARD} {NAV_SECTIONS} {NAV_FORWARD}</td>
</tr>
! <!-- END ACTION_STUFF -->
</table>
--- 1,15 ----
<table border="0" width="100%" cellspacing="1" cellpadding="4">
! <tr class="bg_medium">
<td width="100%" class="smalltext">{LABEL_LABEL}</td>
<td align="center" valign="middle" class="smalltext">{OWNER_LABEL}</td>
<td align="center" valign="middle" class="smalltext">{REPLIES_LABEL}</td>
! <td align="center" valign="middle" nowrap="nowrap" class="smalltext">{LASTREPLY_LABEL}</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>
Index: row.tpl
===================================================================
RCS file: /cvsroot/phpwebsite-comm/modules/phpwsbb/templates/manager/row.tpl,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** row.tpl 23 May 2003 04:09:28 -0000 1.2
--- row.tpl 3 Jun 2003 16:22:45 -0000 1.3
***************
*** 4,7 ****
<td class="smalltext">{OWNER}</td>
<td class="smalltext">{REPLIES}</td>
! <td class="smalltext">{CREATED}</td>
</tr>
--- 4,7 ----
<td class="smalltext">{OWNER}</td>
<td class="smalltext">{REPLIES}</td>
! <td class="smalltext">{LASTREPLY}</td>
</tr>
|
|
From: <mh...@us...> - 2003-06-02 15:56:41
|
Update of /cvsroot/phpwebsite-comm/CVSROOT In directory sc8-pr-cvs1:/tmp/cvs-serv1762 Modified Files: avail Log Message: gave wendall911 write access to modules/contacts Index: avail =================================================================== RCS file: /cvsroot/phpwebsite-comm/CVSROOT/avail,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** avail 27 May 2003 14:31:56 -0000 1.5 --- avail 2 Jun 2003 15:56:33 -0000 1.6 *************** *** 3,7 **** # Selective access for teams, etc. avail|dtseiler|modules/phpwsbb ! avail|dtseiler|modules/contacts avail|gbrackett|modules/jobman --- 3,7 ---- # Selective access for teams, etc. avail|dtseiler|modules/phpwsbb ! avail|dtseiler, wendall911|modules/contacts avail|gbrackett|modules/jobman |
|
From: <dts...@us...> - 2003-06-01 19:58:44
|
Update of /cvsroot/phpwebsite-comm/modules/contacts/class
In directory sc8-pr-cvs1:/tmp/cvs-serv31181/class
Modified Files:
Address.php Phone.php
Log Message:
Permissions fix
Index: Address.php
===================================================================
RCS file: /cvsroot/phpwebsite-comm/modules/contacts/class/Address.php,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** Address.php 1 Jun 2003 18:25:22 -0000 1.3
--- Address.php 1 Jun 2003 19:58:07 -0000 1.4
***************
*** 120,123 ****
--- 120,124 ----
//$this->_address_type = new CONTACTS_AddressType($this->_type_id);
} else {
+ $this->setOwner($_SESSION["OBJ_user"]->username);
$this->_contact_id = $_REQUEST["CONTACTS_contact_id"];
}
Index: Phone.php
===================================================================
RCS file: /cvsroot/phpwebsite-comm/modules/contacts/class/Phone.php,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** Phone.php 1 Jun 2003 18:25:22 -0000 1.2
--- Phone.php 1 Jun 2003 19:58:08 -0000 1.3
***************
*** 64,67 ****
--- 64,68 ----
//$this->_phone_type = new CONTACTS_PhoneType($this->_type_id);
} else {
+ $this->setOwner($_SESSION["OBJ_user"]->username);
$this->_contact_id = $_REQUEST["CONTACTS_contact_id"];
}
|
|
From: <dts...@us...> - 2003-06-01 19:38:39
|
Update of /cvsroot/phpwebsite-comm/modules/contacts/class
In directory sc8-pr-cvs1:/tmp/cvs-serv24378/class
Modified Files:
Contact.php Manager.php
Log Message:
Updates for post-save view and printable view
Index: Contact.php
===================================================================
RCS file: /cvsroot/phpwebsite-comm/modules/contacts/class/Contact.php,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -d -r1.8 -r1.9
*** Contact.php 1 Jun 2003 18:25:22 -0000 1.8
--- Contact.php 1 Jun 2003 19:38:30 -0000 1.9
***************
*** 179,189 ****
$links = array();
if(!is_null($this->getId())) {
if($editmode) {
! $links[] = "<a href=\"index.php?module=contacts&CONTACTS_MAN_OP=edit&CONTACTS_contact_id=" . $this->getId() . "\">" . $_SESSION["translate"]->it("Edit Basic Info") . "</a>";
$links[] = "<a href=\"index.php?module=contacts&CONTACTS_Contact_OP=editphones&CONTACTS_contact_id=" . $this->getId() . "\">" . $_SESSION["translate"]->it("Edit Phone Numbers") . "</a>";
$links[] = "<a href=\"index.php?module=contacts&CONTACTS_Contact_OP=editaddresses&CONTACTS_contact_id=" . $this->getId() . "\">" . $_SESSION["translate"]->it("Edit Addresses") . "</a>";
} else {
! $links[] = "<a href=\"index.php?module=contacts&CONTACTS_MAN_OP=view&CONTACTS_contact_id=" . $this->getId() . "\">" . $_SESSION["translate"]->it("View Basic Info") . "</a>";
$links[] = "<a href=\"index.php?module=contacts&CONTACTS_Contact_OP=viewphones&CONTACTS_contact_id=" . $this->getId() . "\">" . $_SESSION["translate"]->it("View Phone Numbers") . "</a>";
$links[] = "<a href=\"index.php?module=contacts&CONTACTS_Contact_OP=viewaddresses&CONTACTS_contact_id=" . $this->getId() . "\">" . $_SESSION["translate"]->it("View Addresses") . "</a>";
--- 179,192 ----
$links = array();
+ $links[] = "<a href=\"index.php?module=contacts&CONTACTS_MAN_OP=list\">" . $_SESSION["translate"]->it("List Contacts") . "</a>";
+ $links[] = "<a href=\"index.php?module=contacts&CONTACTS_MAN_OP=viewprintable&PHPWS_MAN_ITEMS[]=" . $this->getId() . "\">" . $_SESSION["translate"]->it("View Printable") . "</a>";
+
if(!is_null($this->getId())) {
if($editmode) {
! $links[] = "<a href=\"index.php?module=contacts&CONTACTS_MAN_OP=edit&PHPWS_MAN_ITEMS[]=" . $this->getId() . "\">" . $_SESSION["translate"]->it("Edit Basic Info") . "</a>";
$links[] = "<a href=\"index.php?module=contacts&CONTACTS_Contact_OP=editphones&CONTACTS_contact_id=" . $this->getId() . "\">" . $_SESSION["translate"]->it("Edit Phone Numbers") . "</a>";
$links[] = "<a href=\"index.php?module=contacts&CONTACTS_Contact_OP=editaddresses&CONTACTS_contact_id=" . $this->getId() . "\">" . $_SESSION["translate"]->it("Edit Addresses") . "</a>";
} else {
! $links[] = "<a href=\"index.php?module=contacts&CONTACTS_MAN_OP=view&PHPWS_MAN_ITEMS[]=" . $this->getId() . "\">" . $_SESSION["translate"]->it("View Basic Info") . "</a>";
$links[] = "<a href=\"index.php?module=contacts&CONTACTS_Contact_OP=viewphones&CONTACTS_contact_id=" . $this->getId() . "\">" . $_SESSION["translate"]->it("View Phone Numbers") . "</a>";
$links[] = "<a href=\"index.php?module=contacts&CONTACTS_Contact_OP=viewaddresses&CONTACTS_contact_id=" . $this->getId() . "\">" . $_SESSION["translate"]->it("View Addresses") . "</a>";
***************
*** 380,386 ****
return;
} else {
! $GLOBALS["CNT_contacts"]["content"] .= $_SESSION["translate"]->it("The contact was successfully saved.") . "<br />\n";
! $_REQUEST["CONTACTS_MAN_OP"] = "list";
! $_SESSION["CONTACTS_Manager"]->managerAction();
}
}// END FUNC _save
--- 383,395 ----
return;
} else {
! $message = $_SESSION["translate"]->it("The contact was successfully saved.");
! /*
! $_SESSION["CONTACTS_Manager"]->message = new PHPWS_Message($message, "CNT_contacts");
! $_SESSION["CONTACTS_Manager"]->action();
!
! $this->action();
! */
! return $message . $this->_showtabs() . $this->_view();
!
}
}// END FUNC _save
***************
*** 437,443 ****
$sql = "SELECT id FROM " . $GLOBALS["core"]->tbl_prefix . "mod_contacts_phones WHERE contact_id=" . $this->getId();
$results = $GLOBALS["core"]->getCol($sql);
! foreach ($results as $phoneid) {
! $phone = new CONTACTS_Phone($phoneid);
! $content .= $phone->_view($editmode) . "<br />";
}
--- 446,456 ----
$sql = "SELECT id FROM " . $GLOBALS["core"]->tbl_prefix . "mod_contacts_phones WHERE contact_id=" . $this->getId();
$results = $GLOBALS["core"]->getCol($sql);
! if(sizeof($results) == 0)
! $content .= $_SESSION["translate"]->it("No telephone information found.") . "<br />";
! else {
! foreach ($results as $phoneid) {
! $phone = new CONTACTS_Phone($phoneid);
! $content .= $phone->_view($editmode) . "<br />";
! }
}
***************
*** 454,460 ****
$sql = "SELECT id FROM " . $GLOBALS["core"]->tbl_prefix . "mod_contacts_addresses WHERE contact_id=" . $this->getId();
$results = $GLOBALS["core"]->getCol($sql);
! foreach ($results as $addressid) {
! $address = new CONTACTS_Address($addressid);
! $content .= $address->_view($editmode) . "<br />";
}
--- 467,477 ----
$sql = "SELECT id FROM " . $GLOBALS["core"]->tbl_prefix . "mod_contacts_addresses WHERE contact_id=" . $this->getId();
$results = $GLOBALS["core"]->getCol($sql);
! if(sizeof($results) == 0)
! $content .= $_SESSION["translate"]->it("No address information found.") . "<br />";
! else {
! foreach ($results as $addressid) {
! $address = new CONTACTS_Address($addressid);
! $content .= $address->_view($editmode) . "<br />";
! }
}
***************
*** 467,471 ****
case "view":
$title = $_SESSION["translate"]->it("View Contact Information");
! $content = $this->_showtabs() . $this->_view() . $this->_viewphones() . $this->_viewaddresses();
break;
--- 484,493 ----
case "view":
$title = $_SESSION["translate"]->it("View Contact Information");
! $content = $this->_showtabs() . $this->_view();
! break;
!
! case "viewprintable":
! $title = NULL;
! $content = $this->_view() . $this->_viewphones() . $this->_viewaddresses();
break;
***************
*** 476,480 ****
case "save":
! $this->_save();
break;
--- 498,503 ----
case "save":
! $title = $_SESSION["translate"]->it("Edit Contact Information");
! $content = $this->_save();
break;
Index: Manager.php
===================================================================
RCS file: /cvsroot/phpwebsite-comm/modules/contacts/class/Manager.php,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -d -r1.8 -r1.9
*** Manager.php 1 Jun 2003 18:25:22 -0000 1.8
--- Manager.php 1 Jun 2003 19:38:31 -0000 1.9
***************
*** 77,83 ****
! function _view() {
$this->contact = new CONTACTS_Contact($_REQUEST["PHPWS_MAN_ITEMS"][0]);
! $_REQUEST["CONTACTS_Contact_OP"] = "view";
}// END FUNC _view
--- 77,86 ----
! function _view($printable = FALSE) {
$this->contact = new CONTACTS_Contact($_REQUEST["PHPWS_MAN_ITEMS"][0]);
! if($printable)
! $_REQUEST["CONTACTS_Contact_OP"] = "viewprintable";
! else
! $_REQUEST["CONTACTS_Contact_OP"] = "view";
}// END FUNC _view
***************
*** 190,193 ****
--- 193,200 ----
case "view":
$this->_view();
+ break;
+
+ case "viewprintable":
+ $this->_view(TRUE);
break;
|
|
From: <dts...@us...> - 2003-06-01 18:33:45
|
Update of /cvsroot/phpwebsite-comm/modules/contacts/conf
In directory sc8-pr-cvs1:/tmp/cvs-serv31504/conf
Added Files:
menuman.php
Log Message:
Checking in
--- NEW FILE: menuman.php ---
<?php
/**
* @version $Id: menuman.php,v 1.1 2003/06/01 18:33:41 dtseiler Exp $
* @author Don Seiler <do...@NO...>
*/
$link[$_SESSION['translate']->it("Contacts")] = "index.php?module=contacts&CONTACTS_MAN_OP=list";
?>
|
Update of /cvsroot/phpwebsite-comm/modules/contacts/templates
In directory sc8-pr-cvs1:/tmp/cvs-serv28238/templates
Modified Files:
view_address.tpl
Added Files:
delete_phone.tpl edit_phone.tpl view_contacts.tpl
view_phone.tpl
Log Message:
Got phones and contact viewing working
--- NEW FILE: delete_phone.tpl ---
{START_FORM}
{MESSAGE}<br /><br />
{PHONE_NO}  {PHONE_YES}
{END_FORM}
--- NEW FILE: edit_phone.tpl ---
{START_FORM}
<table border="0" cellpadding="0" cellspacing="0">
<tr valign="top"><td align="right">{TYPE_TEXT}: </td><td>{PHONE_TYPE_ID}</td></tr>
<tr valign="top"><td align="right">{PHONENUMBER_TEXT}: </td><td>{PHONE_PHONENUMBER}</td></tr>
</table>
{PHONE_SAVE}
{END_FORM}
--- NEW FILE: view_contacts.tpl ---
<table border="0" cellspacing="3" cellpadding="0">
<tr><td align="right">{NAME_TEXT}:</td><td>{PREFIX} {GIVENNAME} {MIDDLENAME} {SURNAME} {SUFFIX}</td></tr>
<tr><td align="right">{EMAIL_TEXT}:</td><td><a href="mailto:{EMAIL}">{EMAIL}</a></td></tr>
<tr><td align="right">{WEBSITE_TEXT}:</td><td><a href="{WEBSITE}">{WEBSITE}</a></td></tr>
<tr><td align="right">{BIRTHDAY_TEXT}:</td><td>{BIRTHDAY}</td></tr>
<tr><td align="right">{ANNIVERSARY_TEXT}:</td><td>{ANNIVERSARY}</td></tr>
<tr><td align="right">{ORGANIZATION_TEXT}:</td><td>{ORGANIZATION}</td></tr>
<tr><td align="right">{ORGUNIT_TEXT}:</td><td>{ORGUNIT}</td></tr>
<tr><td align="right">{TITLE_TEXT}:</td><td>{TITLE}</td></tr>
</table>
--- NEW FILE: view_phone.tpl ---
<table border="0"> <tr><td align="right">{TYPE}:</td><td>{PHONENUMBER}</td>
<!-- BEGIN EDIT -->
<td>{EDIT}</td>
<!-- END EDIT -->
<!-- BEGIN DELETE -->
<td>{DELETE}</td>
<!-- END DELETE -->
</tr> </table>
Index: view_address.tpl
===================================================================
RCS file: /cvsroot/phpwebsite-comm/modules/contacts/templates/view_address.tpl,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** view_address.tpl 31 May 2003 07:36:45 -0000 1.1
--- view_address.tpl 1 Jun 2003 18:25:24 -0000 1.2
***************
*** 1,4 ****
<table border="0" cellpadding="0" cellspacing="0">
! <tr valign="top" class="bg_medium"><td align="right">{TYPE_TEXT}: </td><td>{TYPE} <span class="smalltext">{EDIT} {DELETE}</span></td></tr>
<tr valign="top"><td align="right">{STREET_TEXT}: </td><td>{STREET1}<br />{STREET2}</td></tr>
<tr valign="top"><td align="right">{CITY_TEXT}: </td><td>{CITY}</td></tr>
--- 1,7 ----
<table border="0" cellpadding="0" cellspacing="0">
! <tr valign="top"><td colspan="2" align="center"><b>{TYPE}</b>
! <!-- BEGIN EDIT --><span class="smalltext">{EDIT}</span><!-- END EDIT -->
! <!-- BEGIN DELETE --><span class="smalltext">{DELETE}</span><!-- END DELETE -->
! </td></tr>
<tr valign="top"><td align="right">{STREET_TEXT}: </td><td>{STREET1}<br />{STREET2}</td></tr>
<tr valign="top"><td align="right">{CITY_TEXT}: </td><td>{CITY}</td></tr>
|
|
From: <dts...@us...> - 2003-06-01 18:25:27
|
Update of /cvsroot/phpwebsite-comm/modules/contacts/class
In directory sc8-pr-cvs1:/tmp/cvs-serv28238/class
Modified Files:
Address.php Contact.php Manager.php Phone.php
Log Message:
Got phones and contact viewing working
Index: Address.php
===================================================================
RCS file: /cvsroot/phpwebsite-comm/modules/contacts/class/Address.php,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** Address.php 31 May 2003 07:36:44 -0000 1.2
--- Address.php 1 Jun 2003 18:25:22 -0000 1.3
***************
*** 126,133 ****
! function _view() {
$tags = array();
! if(!is_null($this->getId()) && (($_SESSION["OBJ_user"]->username == $this->getOwner()) || $_SESSION["OBJ_user"]->allow_access("contacts","edit_contacts"))) {
$tags["EDIT"] = "<a href=\"index.php?module=contacts&CONTACTS_MAN_OP=editaddress&CONTACTS_address_id=" . $this->getId() . "\">" . $_SESSION["translate"]->it("Edit") . "</a>";
$tags["DELETE"] = "<a href=\"index.php?module=contacts&CONTACTS_MAN_OP=deleteaddress&CONTACTS_address_id=" . $this->getId() . "\">" . $_SESSION["translate"]->it("Delete") . "</a>";
--- 126,133 ----
! function _view($editmode = FALSE) {
$tags = array();
! if($editmode && (!is_null($this->getId()) && (($_SESSION["OBJ_user"]->username == $this->getOwner()) || $_SESSION["OBJ_user"]->allow_access("contacts","edit_contacts")))) {
$tags["EDIT"] = "<a href=\"index.php?module=contacts&CONTACTS_MAN_OP=editaddress&CONTACTS_address_id=" . $this->getId() . "\">" . $_SESSION["translate"]->it("Edit") . "</a>";
$tags["DELETE"] = "<a href=\"index.php?module=contacts&CONTACTS_MAN_OP=deleteaddress&CONTACTS_address_id=" . $this->getId() . "\">" . $_SESSION["translate"]->it("Delete") . "</a>";
***************
*** 137,141 ****
$this->_address_type = new CONTACTS_AddressType($this->_type_id);
! $tags["TYPE"] = $this->_address_type->_name;
$tags["STREET1"] = $this->_street1;
$tags["STREET2"] = $this->_street2;
--- 137,141 ----
$this->_address_type = new CONTACTS_AddressType($this->_type_id);
! $tags["TYPE"] = $this->_address_type->_name;;
$tags["STREET1"] = $this->_street1;
$tags["STREET2"] = $this->_street2;
Index: Contact.php
===================================================================
RCS file: /cvsroot/phpwebsite-comm/modules/contacts/class/Contact.php,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** Contact.php 31 May 2003 07:36:44 -0000 1.7
--- Contact.php 1 Jun 2003 18:25:22 -0000 1.8
***************
*** 182,187 ****
if($editmode) {
$links[] = "<a href=\"index.php?module=contacts&CONTACTS_MAN_OP=edit&CONTACTS_contact_id=" . $this->getId() . "\">" . $_SESSION["translate"]->it("Edit Basic Info") . "</a>";
! $links[] = "<a href=\"index.php?module=contacts&CONTACTS_Contact_OP=viewphones&CONTACTS_contact_id=" . $this->getId() . "\">" . $_SESSION["translate"]->it("Edit Phone Numbers") . "</a>";
! $links[] = "<a href=\"index.php?module=contacts&CONTACTS_Contact_OP=viewaddresses&CONTACTS_contact_id=" . $this->getId() . "\">" . $_SESSION["translate"]->it("Edit Addresses") . "</a>";
} else {
$links[] = "<a href=\"index.php?module=contacts&CONTACTS_MAN_OP=view&CONTACTS_contact_id=" . $this->getId() . "\">" . $_SESSION["translate"]->it("View Basic Info") . "</a>";
--- 182,187 ----
if($editmode) {
$links[] = "<a href=\"index.php?module=contacts&CONTACTS_MAN_OP=edit&CONTACTS_contact_id=" . $this->getId() . "\">" . $_SESSION["translate"]->it("Edit Basic Info") . "</a>";
! $links[] = "<a href=\"index.php?module=contacts&CONTACTS_Contact_OP=editphones&CONTACTS_contact_id=" . $this->getId() . "\">" . $_SESSION["translate"]->it("Edit Phone Numbers") . "</a>";
! $links[] = "<a href=\"index.php?module=contacts&CONTACTS_Contact_OP=editaddresses&CONTACTS_contact_id=" . $this->getId() . "\">" . $_SESSION["translate"]->it("Edit Addresses") . "</a>";
} else {
$links[] = "<a href=\"index.php?module=contacts&CONTACTS_MAN_OP=view&CONTACTS_contact_id=" . $this->getId() . "\">" . $_SESSION["translate"]->it("View Basic Info") . "</a>";
***************
*** 195,198 ****
--- 195,228 ----
}// END FUNC _showtabls
+
+ function _view() {
+ $tags = array();
+ $tags["PREFIX"] = $this->_prefix;
+ $tags["SURNAME"] = $this->_surname;
+ $tags["GIVENNAME"] = $this->_givenname;
+ $tags["MIDDLENAME"] = $this->_middlename;
+ $tags["SUFFIX"] = $this->_suffix;
+ $tags["EMAIL"] = $this->_email;
+ $tags["WEBSITE"] = $this->_website;
+ if(!empty($this->_birthday))
+ $tags["BIRTHDAY"] = $this->_birthday;
+ if(!empty($this->_anniversary))
+ $tags["ANNIVERSARY"] = $this->_anniversary;
+ $tags["ORGANIZATION"] = $this->_organization;
+ $tags["ORGUNIT"] = $this->_orgunit;
+ $tags["TITLE"] = $this->_title;
+
+ $tags["NAME_TEXT"] = $_SESSION["translate"]->it("Name");
+ $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", "view_contacts.tpl");
+ }// END FUNC _view
+
function _edit() {
***************
*** 399,414 ****
! function _viewphones() {
$sql = "SELECT id FROM " . $GLOBALS["core"]->tbl_prefix . "mod_contacts_phones WHERE contact_id=" . $this->getId();
$results = $GLOBALS["core"]->getCol($sql);
! foreach ($results as $phoneid)
! $this->phones[$phoneid] = new CONTACTS_Phone($phoneid);
}// END FUNC _viewphones
! function _viewaddresses() {
! $content = "";
! if(($_SESSION["OBJ_user"]->username == $this->getOwner()) || $_SESSION["OBJ_user"]->allow_access("contacts","edit_contacts")) {
! $content .= "<a href=\"index.php?module=contacts&CONTACTS_MAN_OP=newaddress&CONTACTS_contact_id=" . $this->getId() . "\">" . $_SESSION["translate"]->it("Add New Address") . "</a>";
}
--- 429,453 ----
! function _viewphones($editmode = FALSE) {
! $content = "<br /><b>" . $_SESSION["translate"]->it("Telephone Information") . ":</b><br />";
! if($editmode && (($_SESSION["OBJ_user"]->username == $this->getOwner()) || $_SESSION["OBJ_user"]->allow_access("contacts","edit_contacts"))) {
! $content .= "<a href=\"index.php?module=contacts&CONTACTS_MAN_OP=newphone&CONTACTS_contact_id=" . $this->getId() . "\">" . $_SESSION["translate"]->it("Add New Phone Number") . "</a><br /><br />";
! }
!
$sql = "SELECT id FROM " . $GLOBALS["core"]->tbl_prefix . "mod_contacts_phones WHERE contact_id=" . $this->getId();
$results = $GLOBALS["core"]->getCol($sql);
! foreach ($results as $phoneid) {
! $phone = new CONTACTS_Phone($phoneid);
! $content .= $phone->_view($editmode) . "<br />";
! }
!
! return $content;
}// END FUNC _viewphones
! function _viewaddresses($editmode = FALSE) {
! $content = "<br /><b>" . $_SESSION["translate"]->it("Address Information") . ":</b><br />";
! if($editmode && (($_SESSION["OBJ_user"]->username == $this->getOwner()) || $_SESSION["OBJ_user"]->allow_access("contacts","edit_contacts"))) {
! $content .= "<a href=\"index.php?module=contacts&CONTACTS_MAN_OP=newaddress&CONTACTS_contact_id=" . $this->getId() . "\">" . $_SESSION["translate"]->it("Add New Address") . "</a><br /><br />";
}
***************
*** 417,421 ****
foreach ($results as $addressid) {
$address = new CONTACTS_Address($addressid);
! $content .= $address->_view() . "<br />";
}
--- 456,460 ----
foreach ($results as $addressid) {
$address = new CONTACTS_Address($addressid);
! $content .= $address->_view($editmode) . "<br />";
}
***************
*** 426,429 ****
--- 465,473 ----
function action() {
switch($_REQUEST["CONTACTS_Contact_OP"]) {
+ case "view":
+ $title = $_SESSION["translate"]->it("View Contact Information");
+ $content = $this->_showtabs() . $this->_view() . $this->_viewphones() . $this->_viewaddresses();
+ break;
+
case "edit":
$title = $_SESSION["translate"]->it("Edit Contact Information");
***************
*** 447,450 ****
--- 491,504 ----
$title = $_SESSION["translate"]->it("Contact Address Information");
$content = $this->_showtabs() . $this->_viewaddresses();
+ break;
+
+ case "editphones":
+ $title = $_SESSION["translate"]->it("Contact Telephone Information");
+ $content = $this->_showtabs() . $this->_viewphones(TRUE);
+ break;
+
+ case "editaddresses":
+ $title = $_SESSION["translate"]->it("Contact Address Information");
+ $content = $this->_showtabs() . $this->_viewaddresses(TRUE);
break;
Index: Manager.php
===================================================================
RCS file: /cvsroot/phpwebsite-comm/modules/contacts/class/Manager.php,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** Manager.php 31 May 2003 07:36:44 -0000 1.7
--- Manager.php 1 Jun 2003 18:25:22 -0000 1.8
***************
*** 77,82 ****
! function _view($id) {
! $this->contact = new CONTACTS_Contact($id[0]);
$_REQUEST["CONTACTS_Contact_OP"] = "view";
}// END FUNC _view
--- 77,82 ----
! function _view() {
! $this->contact = new CONTACTS_Contact($_REQUEST["PHPWS_MAN_ITEMS"][0]);
$_REQUEST["CONTACTS_Contact_OP"] = "view";
}// END FUNC _view
***************
*** 161,164 ****
--- 161,182 ----
+ function _newPhone() {
+ $this->phone = new CONTACTS_Phone;
+ $_REQUEST["CONTACTS_Phone_OP"] = "edit";
+ }// END FUNC _newPhone
+
+
+ function _editPhone() {
+ $this->phone= new CONTACTS_Phone($_REQUEST["CONTACTS_phone_id"]);
+ $_REQUEST["CONTACTS_Phone_OP"] = "edit";
+ }// END FUNC _editPhone
+
+
+ function _deletePhone() {
+ $this->phone= new CONTACTS_Phone($_REQUEST["CONTACTS_phone_id"]);
+ $_REQUEST["CONTACTS_Phone_OP"] = "delete";
+ }// END FUNC _editPhone
+
+
function action() {
if(PHPWS_Message::isMessage($this->message))
***************
*** 236,239 ****
--- 254,265 ----
case "newphone":
$this->_newPhone();
+ break;
+
+ case "editphone":
+ $this->_editPhone();
+ break;
+
+ case "deletephone":
+ $this->_deletePhone();
break;
Index: Phone.php
===================================================================
RCS file: /cvsroot/phpwebsite-comm/modules/contacts/class/Phone.php,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** Phone.php 28 May 2003 18:01:11 -0000 1.1
--- Phone.php 1 Jun 2003 18:25:22 -0000 1.2
***************
*** 7,10 ****
--- 7,250 ----
class CONTACTS_Phone extends PHPWS_Item {
+ /**
+ * The contact id of the phone
+ *
+ * @var integer
+ * @access private
+ */
+ var $_contact_id = NULL;
+
+
+ /**
+ * The phone type of the phone
+ *
+ * @var integer
+ * @access private
+ */
+ var $_type_id = NULL;
+
+
+ /**
+ * The phone number
+ *
+ * @var string
+ * @access private
+ */
+ var $_phonenumber = NULL;
+
+
+ /**
+ * The phone type object of the phone
+ *
+ * @var CONTACTS_PhoneType
+ * @access private
+ */
+ var $_phone_type = NULL;
+
+
+ /**
+ * Array of phone type objects
+ *
+ * @var array
+ * @access private
+ */
+ var $phone_types = array();
+
+
+ function CONTACTS_Phone($PHONE_ID = NULL) {
+ /* These vars are excluded on commit() */
+ $exclude = array("_phone_type","phone_types");
+ $this->addExclude($exclude);
+
+ $this->setTable("mod_contacts_phones");
+
+ if(isset($PHONE_ID)) {
+ $this->setId($PHONE_ID);
+ $this->init();
+ //$this->_phone_type = new CONTACTS_PhoneType($this->_type_id);
+ } else {
+ $this->_contact_id = $_REQUEST["CONTACTS_contact_id"];
+ }
+
+ }// END FUNC CONTACTS_Phone
+
+
+ function _view($editmode = FALSE) {
+ $tags = array();
+
+ if($editmode && (!is_null($this->getId()) && (($_SESSION["OBJ_user"]->username == $this->getOwner()) || $_SESSION["OBJ_user"]->allow_access("contacts","edit_contacts")))) {
+ $tags["EDIT"] = "<a href=\"index.php?module=contacts&CONTACTS_MAN_OP=editphone&CONTACTS_phone_id=" . $this->getId() . "\">" . $_SESSION["translate"]->it("Edit") . "</a>";
+ $tags["DELETE"] = "<a href=\"index.php?module=contacts&CONTACTS_MAN_OP=deletephone&CONTACTS_phone_id=" . $this->getId() . "\">" . $_SESSION["translate"]->it("Delete") . "</a>";
+ }
+
+ $this->_phone_type = new CONTACTS_PhoneType($this->_type_id);
+
+ $tags["TYPE"] = $this->_phone_type->_name;
+ $tags["PHONENUMBER"] = $this->_phonenumber;
+
+ $tags["TYPE_TEXT"] = $_SESSION["translate"]->it("Type");
+ $tags["PHONENUMBER_TEXT"] = $_SESSION["translate"]->it("Number");
+
+ return $GLOBALS["core"]->processTemplate($tags, "contacts", "view_phone.tpl");
+ }
+
+
+ function _edit() {
+
+ if(($_SESSION["OBJ_user"]->username != $this->getOwner()) && !$_SESSION["OBJ_user"]->allow_access("contacts","edit_contacts")) {
+ $message = $_SESSION["translate"]->it("Access to edit phone was denied due to lack of proper permissions.");
+ $error = new PHPWS_Error("contacts", "CONTACTS_Phone::_edit()", $message, "exit", 1);
+ $error->message();
+ return FALSE;
+ }
+
+ // Get phone types
+ $result = $GLOBALS["core"]->sqlSelect("mod_contacts_phonetypes", NULL, NULL, "name");
+ foreach ($result as $row)
+ $this->phone_types[$row["id"]] = $row["name"];
+
+ /* Create form */
+ $form = new EZform("CONTACTS_Phone_edit");
+
+ /* Phone Type */
+ $form->add("Phone_type_id", "select", $this->phone_types);
+ $form->setMatch("Phone_type_id", $this->_type_id);
+ $form->setTab("Phone_type_id", 1);
+
+ /* Phone Number */
+ $form->add("Phone_phonenumber", "text", $this->_phonenumber);
+ $form->setSize("Phone_phonenumber", 33);
+ $form->setTab("Phone_phonenumber", 2);
+
+
+ /* Save Button */
+ $form->add("Phone_save", "submit", $_SESSION["translate"]->it("Save"));
+ $form->setTab("Phone_save", 3);
+
+ /* Module Information */
+ $form->add("Phone_contact_id", "hidden", $this->_contact_id);
+ $form->add("module", "hidden", "contacts");
+ $form->add("CONTACTS_Phone_OP", "hidden", "save");
+
+ $tags = array();
+ $tags = $form->getTemplate();
+
+ $tags["TYPE_TEXT"] = $_SESSION["translate"]->it("Type");
+ $tags["PHONENUMBER_TEXT"] = $_SESSION["translate"]->it("Number");
+
+ return $GLOBALS["core"]->processTemplate($tags, "contacts", "edit_phone.tpl");
+
+ }// END FUNC _edit
+
+
+ function _save() {
+ if(($_SESSION["OBJ_user"]->username != $this->getOwner()) && !$_SESSION["OBJ_user"]->allow_access("contacts","edit_contacts")) {
+ $message = $_SESSION["translate"]->it("Access to save phone was denied due to lack of proper permissions.");
+ $error = new PHPWS_Error("contacts", "CONTACTS_Phone::_save()", $message, "exit", 1);
+ $error->message();
+ return FALSE;
+ }
+
+ if(isset($_REQUEST["Phone_type_id"]))
+ $this->_type_id = $_REQUEST["Phone_type_id"];
+
+ if(isset($_REQUEST["Phone_phonenumber"]))
+ $this->_phonenumber = $_REQUEST["Phone_phonenumber"];
+
+ $this->setLabel("$this->_phonenumber");
+
+ $error = $this->commit();
+
+ if(PHPWS_Error::isError($error)) {
+ $message = $_SESSION["translate"]->it("The phone could not be saved to the database.");
+ $error = new PHPWS_Error("contacts", $message, "continue", 0);
+ $error->message("CNT_contacts");
+
+ $_REQUEST["CONTACTS_Phone_OP"] = "edit";
+ $this->action();
+ return;
+ } else {
+ $GLOBALS["CNT_contacts"]["content"] .= $_SESSION["translate"]->it("The phone was successfully saved.") . "<br />\n";
+ // Probably need to pass some IDs in or something
+ $_REQUEST["CONTACTS_Contact_OP"] = "viewphones";
+ $_SESSION["CONTACTS_Manager"]->contact->action();
+ }
+ }// END FUNC _save
+
+
+ function _delete() {
+ if(!$_SESSION["OBJ_user"]->allow_access("contacts", "delete_contacts")) {
+ $message = $_SESSION["translate"]->it("Access to delete phone was denied due to lack of proper permissions.");
+ $error = new PHPWS_Error("contacts", "CONTACTS_Phone::_delete()", $message, "exit", 1);
+ $error->message();
+ return FALSE;
+ }
+
+ if(isset($_REQUEST["Phone_yes"])) {
+ $this->kill();
+ $message = $_SESSION["translate"]->it("The phone [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_Contact_OP"] = "viewphones";
+ $_SESSION["CONTACTS_Manager"]->contact->action();
+
+ } elseif(isset($_REQUEST["Phone_no"])) {
+ $message = $_SESSION["translate"]->it("No phone was deleted from the database.");
+ $_SESSION["CONTACTS_Manager"]->message = new PHPWS_Message($message, "CNT_contacts");
+ $_SESSION["CONTACTS_Manager"]->action();
+ $_REQUEST["CONTACTS_Contact_OP"] = "viewphones";
+ $_SESSION["CONTACTS_Manager"]->contact->action();
+
+ } else {
+ $title = $_SESSION["translate"]->it("Delete Phone Confirmation");
+
+ $form = new EZform("CONTACTS_Phone_delete");
+ $form->add("module", "hidden", "contacts");
+ $form->add("CONTACTS_Phone_OP", "hidden", "delete");
+
+ $form->add("Phone_yes", "submit", $_SESSION["translate"]->it("Yes"));
+ $form->add("Phone_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?");
+
+ $content = $GLOBALS["core"]->processTemplate($tags, "contacts", "delete_phone.tpl");
+ $_SESSION["OBJ_layout"]->popbox($title, $content, NULL, "CNT_contacts");
+ }
+
+ }// END FUNC _delete
+
+
+ function action() {
+ switch($_REQUEST["CONTACTS_Phone_OP"]) {
+ case "view":
+ $content = $this->_view();
+ break;
+
+ case "edit":
+ $title = $_SESSION["translate"]->it("Edit Phone Information");
+ $GLOBALS["CNT_contacts"]["title"] = $title;
+ $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"]["content"] .= $content;
+ }
+ }// END FUNC action
+
+
}// END CLASS CONTACTS_Phone
|
|
From: <mh...@us...> - 2003-06-01 16:07:21
|
Update of /cvsroot/phpwebsite-comm/documents/docmanager/en In directory sc8-pr-cvs1:/tmp/cvs-serv13595 Modified Files: 1.2_documents.html Log Message: initial draft Index: 1.2_documents.html =================================================================== RCS file: /cvsroot/phpwebsite-comm/documents/docmanager/en/1.2_documents.html,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** 1.2_documents.html 23 May 2003 15:48:01 -0000 1.2 --- 1.2_documents.html 1 Jun 2003 16:07:12 -0000 1.3 *************** *** 4,17 **** <!-- Last modified: $Id$ --> <!-- DocManager ID: 17110 --> ! <h3 style="font: small-caps bold 14pt 'Vera Sans',Albany,Arial,Helvetica,sans-serif">Documents</h3> ! ! <p style="font: oblique 8pt 'Vera Sans',Albany,Arial,Helvetica,sans-serif">Authors: Mike Noyes<br /> ! Revision: 0.1<br /> ! Date: 2003-05-23</p> ! <hr /> <!-- begin document body --> <!-- end document body --> <hr /> ! <p style="font: 10pt 'Vera Sans',Albany,Arial,Helvetica,sans-serif; margin-top: 0cm">If you still have questions or concern regarding this document, please feel free to <a href="/tracker/?func=add&group_id=81360&atid=563509">submit a support request</a>. A member of the phpWebSite Community project will be glad to assist you further.</p> ! </div> --- 4,82 ---- <!-- Last modified: $Id$ --> <!-- DocManager ID: 17110 --> ! <h3 style="font: small-caps bold 14pt 'Vera Sans',Albany,Arial,Helvetica,sans-serif"> ! Documents</h3> ! <p style="font: oblique 8pt 'Vera Sans',Albany,Arial,Helvetica,sans-serif"> ! Authors:  Mike Noyes<br /> ! Revision:  0.1<br /> ! Date:  2003-05-23</p> <hr /> <!-- begin document body --> + <h4 style="font: bold 12pt 'Vera Sans',Albany,Arial,Helvetica,sans-serif"> + DocManager</h4> + <div style="margin-left: 5%"> + <p style="font: 12pt 'Vera Serif',Thorndale,'Times New Roman',Times,serif"> + The DocManager will only contain project policy files. These files + will be modified in CVS and updated in DocManager with + <a href="http://sitedocs.sourceforge.net/projects/adocman">adocman</a>.</p></div> + <h4 style="font: bold 12pt 'Vera Sans',Albany,Arial,Helvetica,sans-serif"> + FAQ</h4> + <div style="margin-left: 5%"> + <p style="font: 12pt 'Vera Serif',Thorndale,'Times New Roman',Times,serif"> + Frequently Asked Questions (FAQ) will be contained in a phpWebSite + module on our website.</p></div> + <h4 style="font: bold 12pt 'Vera Sans',Albany,Arial,Helvetica,sans-serif"> + HOWTO</h4> + <div style="margin-left: 5%"> + <p style="font: 12pt 'Vera Serif',Thorndale,'Times New Roman',Times,serif"> + These documents will be modified in CVS, and published on our + project website. The preferred format is DocBook.</p></div> + <h4 style="font: bold 12pt 'Vera Sans',Albany,Arial,Helvetica,sans-serif"> + Guide</h4> + <div style="margin-left: 5%"> + <p style="font: 12pt 'Vera Serif',Thorndale,'Times New Roman',Times,serif"> + Guides will be written in accordance with The Linux Documentation + Project's + <a href="http://tldp.org/LDP/LDP-Author-Guide/index.html">Author + Guide</a>. Modification of the documents will occur in CVS, and + they will be published on our project website.</p></div> + <h4 style="font: bold 12pt 'Vera Sans',Albany,Arial,Helvetica,sans-serif"> + DocBook Resources</h4> + <div style="margin-left: 5%"> + <p style="font: 12pt 'Vera Serif',Thorndale,'Times New Roman',Times,serif"> + The links below are helpful for understanding DocBook. If after + reading these resources you still have questions, please + <a href="/tracker/?func=add&group_id=81360&atid=563509">submit + a support request</a>.</p> + <dl> + <dt style="font: bold 10pt 'Vera Sans',Albany,Arial,Helvetica,sans-serif"> + XML 4.x</dt> + <dd> + <ul style="list-style-type: none"> + <li style="font: 10pt 'Vera Sans',Albany,Arial,Helvetica,sans-serif"> + <a href="http://oasis-open.org/docbook/xml/">DocBook XML</a></li> + <li style="font: 10pt 'Vera Sans',Albany,Arial,Helvetica,sans-serif"> + <a href="http://docbook.org/tdg/en/html/docbook.html">DocBook: The + Definitive Guide</a></li> + <li style="font: 10pt 'Vera Sans',Albany,Arial,Helvetica,sans-serif"> + <a href="http://docbook.org/wiki/moin.cgi/">DocBook Wiki</a></li> + <li style="font: 10pt 'Vera Sans',Albany,Arial,Helvetica,sans-serif"> + <a href="http://docbook.sourceforge.net/">DocBook Open + Repository</a></li></ul></dd> + <dt style="font: bold 10pt 'Vera Sans',Albany,Arial,Helvetica,sans-serif"> + Simplified</dt> + <dd> + <ul style="list-style-type: none"> + <li style="font: 10pt 'Vera Sans',Albany,Arial,Helvetica,sans-serif"> + <a href="http://oasis-open.org/docbook/xml/simple/">Simplified + DocBook</a></li> + <li style="font: 10pt 'Vera Sans',Albany,Arial,Helvetica,sans-serif"> + <a href="http://docbook.org/tdg/simple/en/html/sdocbook.html">Simplified + DocBook: The Definitive Guide</a></li></ul></dd></dl></div></div> <!-- end document body --> <hr /> ! <p style="font: 10pt 'Vera Sans',Albany,Arial,Helvetica,sans-serif; margin-top: 0cm"> ! If you still have questions or concern regarding this document, ! please feel free to ! <a href="/tracker/?func=add&group_id=81360&atid=563509">submit ! a support request</a>. A member of the phpWebSite Community project ! will be glad to assist you further.</p> |
|
From: <dts...@us...> - 2003-05-31 07:36:48
|
Update of /cvsroot/phpwebsite-comm/modules/contacts/templates
In directory sc8-pr-cvs1:/tmp/cvs-serv26427/templates
Added Files:
delete_address.tpl edit_address.tpl view_address.tpl
Log Message:
Lots of work for addresses
--- NEW FILE: delete_address.tpl ---
{START_FORM}
{MESSAGE}<br /><br />
{ADDRESS_NO}  {ADDRESS_YES}
{END_FORM}
--- NEW FILE: edit_address.tpl ---
{START_FORM}
<table border="0" cellpadding="0" cellspacing="0">
<tr valign="top"><td align="right">{TYPE_TEXT}: </td><td>{ADDRESS_TYPE_ID}</td></tr>
<tr valign="top"><td align="right">{STREET_TEXT}: </td><td>{ADDRESS_STREET1}<br />{ADDRESS_STREET2}</td></tr>
<tr valign="top"><td align="right">{CITY_TEXT}: </td><td>{ADDRESS_CITY}</td></tr>
<tr valign="top"><td align="right">{STATEPROV_TEXT}: </td><td>{ADDRESS_STATEPROV}</td></tr>
<tr valign="top"><td align="right">{POSTALCODE_TEXT}: </td><td>{ADDRESS_POSTALCODE}</td></tr>
<tr valign="top"><td align="right">{COUNTRY_TEXT}: </td><td>{ADDRESS_COUNTRY_ID}</td></tr>
</table>
{ADDRESS_SAVE}
{END_FORM}
--- NEW FILE: view_address.tpl ---
<table border="0" cellpadding="0" cellspacing="0">
<tr valign="top" class="bg_medium"><td align="right">{TYPE_TEXT}: </td><td>{TYPE} <span class="smalltext">{EDIT} {DELETE}</span></td></tr>
<tr valign="top"><td align="right">{STREET_TEXT}: </td><td>{STREET1}<br />{STREET2}</td></tr>
<tr valign="top"><td align="right">{CITY_TEXT}: </td><td>{CITY}</td></tr>
<tr valign="top"><td align="right">{STATEPROV_TEXT}: </td><td>{STATEPROV}</td></tr>
<tr valign="top"><td align="right">{POSTALCODE_TEXT}: </td><td>{POSTALCODE}</td></tr>
<tr valign="top"><td align="right">{COUNTRY_TEXT}: </td><td>{COUNTRY}</td></tr>
</table>
|
|
From: <dts...@us...> - 2003-05-31 07:36:47
|
Update of /cvsroot/phpwebsite-comm/modules/contacts/class
In directory sc8-pr-cvs1:/tmp/cvs-serv26427/class
Modified Files:
Address.php Contact.php Manager.php
Log Message:
Lots of work for addresses
Index: Address.php
===================================================================
RCS file: /cvsroot/phpwebsite-comm/modules/contacts/class/Address.php,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** Address.php 28 May 2003 18:01:11 -0000 1.1
--- Address.php 31 May 2003 07:36:44 -0000 1.2
***************
*** 7,10 ****
--- 7,366 ----
class CONTACTS_Address extends PHPWS_Item {
+ /**
+ * The contact id of the address
+ *
+ * @var integer
+ * @access private
+ */
+ var $_contact_id = NULL;
+
+
+ /**
+ * The address type of the address
+ *
+ * @var integer
+ * @access private
+ */
+ var $_type_id = NULL;
+
+
+ /**
+ * The street address lines of the address
+ *
+ * @var string
+ * @access private
+ */
+ var $_street1 = NULL;
+ var $_street2 = NULL;
+
+
+ /**
+ * The city of the address
+ *
+ * @var string
+ * @access private
+ */
+ var $_city = NULL;
+
+
+ /**
+ * The state or province of the address
+ *
+ * @var string
+ * @access private
+ */
+ var $_stateprov = NULL;
+
+
+ /**
+ * The postal or zip code of the address
+ *
+ * @var string
+ * @access private
+ */
+ var $_postalcode = NULL;
+
+
+ /**
+ * The country id of the address
+ *
+ * @var string
+ * @access private
+ */
+ var $_country_id = NULL;
+
+
+ /**
+ * The country object of the address
+ *
+ * @var CONTACTS_Country
+ * @access private
+ */
+ var $_country = NULL;
+
+
+ /**
+ * The address type object of the address
+ *
+ * @var CONTACTS_AddressType
+ * @access private
+ */
+ var $_address_type = NULL;
+
+
+ /**
+ * Array of address types objects
+ *
+ * @var array
+ * @access private
+ */
+ var $address_types = array();
+
+
+ /**
+ * Array of country objects
+ *
+ * @var array
+ * @access private
+ */
+ var $countries = array();
+
+
+ function CONTACTS_Address($ADDRESS_ID = NULL) {
+ /* These vars are excluded on commit() */
+ $exclude = array("_country","_address_type","address_types","countries");
+ $this->addExclude($exclude);
+
+ $this->setTable("mod_contacts_addresses");
+
+ if(isset($ADDRESS_ID)) {
+ $this->setId($ADDRESS_ID);
+ $this->init();
+ //$this->_country = new CONTACTS_Country($this->_country_id);
+ //$this->_address_type = new CONTACTS_AddressType($this->_type_id);
+ } else {
+ $this->_contact_id = $_REQUEST["CONTACTS_contact_id"];
+ }
+
+ }// END FUNC CONTACTS_Address
+
+
+ function _view() {
+ $tags = array();
+
+ if(!is_null($this->getId()) && (($_SESSION["OBJ_user"]->username == $this->getOwner()) || $_SESSION["OBJ_user"]->allow_access("contacts","edit_contacts"))) {
+ $tags["EDIT"] = "<a href=\"index.php?module=contacts&CONTACTS_MAN_OP=editaddress&CONTACTS_address_id=" . $this->getId() . "\">" . $_SESSION["translate"]->it("Edit") . "</a>";
+ $tags["DELETE"] = "<a href=\"index.php?module=contacts&CONTACTS_MAN_OP=deleteaddress&CONTACTS_address_id=" . $this->getId() . "\">" . $_SESSION["translate"]->it("Delete") . "</a>";
+ }
+
+ $this->_country = new CONTACTS_Country($this->_country_id);
+ $this->_address_type = new CONTACTS_AddressType($this->_type_id);
+
+ $tags["TYPE"] = $this->_address_type->_name;
+ $tags["STREET1"] = $this->_street1;
+ $tags["STREET2"] = $this->_street2;
+ $tags["CITY"] = $this->_city;
+ $tags["STATEPROV"] = $this->_stateprov;
+ $tags["POSTALCODE"] = $this->_postalcode;
+ $tags["COUNTRY"] = $this->_country->_country;
+
+ $tags["TYPE_TEXT"] = $_SESSION["translate"]->it("Type");
+ $tags["STREET_TEXT"] = $_SESSION["translate"]->it("Street");
+ $tags["CITY_TEXT"] = $_SESSION["translate"]->it("City");
+ $tags["STATEPROV_TEXT"] = $_SESSION["translate"]->it("State/Province");
+ $tags["POSTALCODE_TEXT"] = $_SESSION["translate"]->it("Zip/Postal Code");
+ $tags["COUNTRY_TEXT"] = $_SESSION["translate"]->it("Country");
+
+ return $GLOBALS["core"]->processTemplate($tags, "contacts", "view_address.tpl");
+ }
+
+
+ function _edit() {
+
+ if(($_SESSION["OBJ_user"]->username != $this->getOwner()) && !$_SESSION["OBJ_user"]->allow_access("contacts","edit_contacts")) {
+ $message = $_SESSION["translate"]->it("Access to edit address was denied due to lack of proper permissions.");
+ $error = new PHPWS_Error("contacts", "CONTACTS_Address::_edit()", $message, "exit", 1);
+ $error->message();
+ return FALSE;
+ }
+
+ // Get address types
+ $result = $GLOBALS["core"]->sqlSelect("mod_contacts_addresstypes", NULL, NULL, "name");
+ foreach ($result as $row)
+ $this->address_types[$row["id"]] = $row["name"];
+
+ // Get countries
+ $result = $GLOBALS["core"]->sqlSelect("mod_contacts_countries", NULL, NULL, "country");
+ foreach ($result as $row)
+ $this->countries[$row["id"]] = $row["country"];
+
+
+ /* Create form */
+ $form = new EZform("CONTACTS_Address_edit");
+
+ /* Address Type */
+ $form->add("Address_type_id", "select", $this->address_types);
+ $form->setMatch("Address_type_id", $this->_type_id);
+ $form->setTab("Address_type_id", 1);
+
+ /* Street Address */
+ $form->add("Address_street1", "text", $this->_street1);
+ $form->setSize("Address_street1", 33);
+ $form->setTab("Address_street1", 2);
+
+ $form->add("Address_street2", "text", $this->_street2);
+ $form->setSize("Address_street2", 33);
+ $form->setTab("Address_street2", 3);
+
+ /* City */
+ $form->add("Address_city", "text", $this->_city);
+ $form->setSize("Address_city", 33);
+ $form->setTab("Address_city", 4);
+
+ /* State */
+ $form->add("Address_stateprov", "text", $this->_stateprov);
+ $form->setSize("Address_stateprov", 5);
+ $form->setTab("Address_stateprov", 5);
+
+ /* Postal Code */
+ $form->add("Address_postalcode", "text", $this->_postalcode);
+ $form->setSize("Address_postalcode", 10);
+ $form->setTab("Address_postalcode", 6);
+
+ /* Country */
+ $form->add("Address_country_id", "select", $this->countries);
+ $form->setMatch("Address_country_id", $this->_country_id);
+ $form->setTab("Address_country_id", 7);
+
+ /* Save Button */
+ $form->add("Address_save", "submit", $_SESSION["translate"]->it("Save"));
+ $form->setTab("Address_save", 13);
+
+ /* Module Information */
+ $form->add("Address_contact_id", "hidden", $this->_contact_id);
+ $form->add("module", "hidden", "contacts");
+ $form->add("CONTACTS_Address_OP", "hidden", "save");
+
+ $tags = array();
+ $tags = $form->getTemplate();
+
+ $tags["TYPE_TEXT"] = $_SESSION["translate"]->it("Type");
+ $tags["STREET_TEXT"] = $_SESSION["translate"]->it("Street");
+ $tags["CITY_TEXT"] = $_SESSION["translate"]->it("City");
+ $tags["STATEPROV_TEXT"] = $_SESSION["translate"]->it("State/Province");
+ $tags["POSTALCODE_TEXT"] = $_SESSION["translate"]->it("Zip/Postal Code");
+ $tags["COUNTRY_TEXT"] = $_SESSION["translate"]->it("Country");
+
+
+ return $GLOBALS["core"]->processTemplate($tags, "contacts", "edit_address.tpl");
+
+ }// END FUNC _edit
+
+
+ function _save() {
+ if(($_SESSION["OBJ_user"]->username != $this->getOwner()) && !$_SESSION["OBJ_user"]->allow_access("contacts","edit_contacts")) {
+ $message = $_SESSION["translate"]->it("Access to save address was denied due to lack of proper permissions.");
+ $error = new PHPWS_Error("contacts", "CONTACTS_Address::_save()", $message, "exit", 1);
+ $error->message();
+ return FALSE;
+ }
+
+ if(isset($_REQUEST["Address_type_id"]))
+ $this->_type_id = $_REQUEST["Address_type_id"];
+
+ if(isset($_REQUEST["Address_street1"]))
+ $this->_street1 = $_REQUEST["Address_street1"];
+
+ if(isset($_REQUEST["Address_street2"]))
+ $this->_street2 = $_REQUEST["Address_street2"];
+
+ if(isset($_REQUEST["Address_city"]))
+ $this->_city = $_REQUEST["Address_city"];
+
+ if(isset($_REQUEST["Address_stateprov"]))
+ $this->_stateprov = $_REQUEST["Address_stateprov"];
+
+ if(isset($_REQUEST["Address_postalcode"]))
+ $this->_postalcode = $_REQUEST["Address_postalcode"];
+
+ if(isset($_REQUEST["Address_country_id"]))
+ $this->_country_id = $_REQUEST["Address_country_id"];
+
+ $this->setLabel("$this->_street1 $this->_street2 $this->_city, $this->_stateprov");
+
+
+ $error = $this->commit();
+
+ if(PHPWS_Error::isError($error)) {
+ $message = $_SESSION["translate"]->it("The address could not be saved to the database.");
+ $error = new PHPWS_Error("contacts", $message, "continue", 0);
+ $error->message("CNT_contacts");
+
+ $_REQUEST["CONTACTS_Address_OP"] = "edit";
+ $this->action();
+ return;
+ } else {
+ $GLOBALS["CNT_contacts"]["content"] .= $_SESSION["translate"]->it("The address was successfully saved.") . "<br />\n";
+ // Probably need to pass some IDs in or something
+ $_REQUEST["CONTACTS_Contact_OP"] = "viewaddresses";
+ $_SESSION["CONTACTS_Manager"]->contact->action();
+ }
+ }// END FUNC _save
+
+
+ function _delete() {
+ if(!$_SESSION["OBJ_user"]->allow_access("contacts", "delete_contacts")) {
+ $message = $_SESSION["translate"]->it("Access to delete address was denied due to lack of proper permissions.");
+ $error = new PHPWS_Error("contacts", "CONTACTS_Address::_delete()", $message, "exit", 1);
+ $error->message();
+ return FALSE;
+ }
+
+ if(isset($_REQUEST["Address_yes"])) {
+ $this->kill();
+ $message = $_SESSION["translate"]->it("The address [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_Contact_OP"] = "viewaddresses";
+ $_SESSION["CONTACTS_Manager"]->contact->action();
+
+ } elseif(isset($_REQUEST["Address_no"])) {
+ $message = $_SESSION["translate"]->it("No address was deleted from the database.");
+ $_SESSION["CONTACTS_Manager"]->message = new PHPWS_Message($message, "CNT_contacts");
+ $_SESSION["CONTACTS_Manager"]->action();
+ $_REQUEST["CONTACTS_Contact_OP"] = "viewaddresses";
+ $_SESSION["CONTACTS_Manager"]->contact->action();
+
+ } else {
+ $title = $_SESSION["translate"]->it("Delete Address Confirmation");
+
+ $form = new EZform("CONTACTS_Address_delete");
+ $form->add("module", "hidden", "contacts");
+ $form->add("CONTACTS_Address_OP", "hidden", "delete");
+
+ $form->add("Address_yes", "submit", $_SESSION["translate"]->it("Yes"));
+ $form->add("Address_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?");
+
+ $content = $GLOBALS["core"]->processTemplate($tags, "contacts", "delete_address.tpl");
+ $_SESSION["OBJ_layout"]->popbox($title, $content, NULL, "CNT_contacts");
+ }
+
+ }// END FUNC _delete
+
+
+ function action() {
+ switch($_REQUEST["CONTACTS_Address_OP"]) {
+ case "view":
+ $content = $this->_view();
+ break;
+
+ case "edit":
+ $title = $_SESSION["translate"]->it("Edit Address Information");
+ $GLOBALS["CNT_contacts"]["title"] = $title;
+ $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"]["content"] .= $content;
+ }
+ }// END FUNC action
+
+
}// END CLASS CONTACTS_Address
Index: Contact.php
===================================================================
RCS file: /cvsroot/phpwebsite-comm/modules/contacts/class/Contact.php,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** Contact.php 30 May 2003 13:49:00 -0000 1.6
--- Contact.php 31 May 2003 07:36:44 -0000 1.7
***************
*** 116,124 ****
function CONTACTS_Contact($CONTACT_ID = NULL) {
/* These vars are excluded on commit() */
! // $exclude = array();
! // $this->addExclude($exclude);
$this->setTable("mod_contacts_contacts");
--- 116,142 ----
+ /**
+ * Array of phones for this contact
+ *
+ * @var array
+ * @access private
+ */
+ var $_phones = array();
+
+
+ /**
+ * Array of addresses for this contact
+ *
+ * @var array
+ * @access private
+ */
+ var $_addresses = array();
+
+
function CONTACTS_Contact($CONTACT_ID = NULL) {
/* These vars are excluded on commit() */
! $exclude = array("_phones","_addresses");
! $this->addExclude($exclude);
$this->setTable("mod_contacts_contacts");
***************
*** 127,130 ****
--- 145,160 ----
$this->setId($CONTACT_ID);
$this->init();
+
+ /*
+ $sql = "SELECT id FROM " $GLOBALS["core"]->tbl_prefix . "mod_contacts_phones WHERE contact_id=" . $this->getId();
+ $results = $GLOBALS["core"]->getCol($sql);
+ foreach ($results as $phoneid)
+ $this->phones[$phoneid] = new CONTACTS_Phone($phoneid);
+
+ $sql = "SELECT id FROM " $GLOBALS["core"]->tbl_prefix . "mod_contacts_addresses WHERE contact_id=" . $this->getId();
+ $results = $GLOBALS["core"]->getCol($sql);
+ foreach ($results as $addressid)
+ $this->phones[$addressid] = new CONTACTS_Phone($addressid);
+ */
} else {
// Find contact owned by this username
***************
*** 141,144 ****
--- 171,198 ----
}// END FUNC CONTACTS_Contact
+
+ function _showtabs() {
+ $editmode = TRUE;
+ if(($_SESSION["OBJ_user"]->username != $this->getOwner()) && !$_SESSION["OBJ_user"]->allow_access("contacts","edit_contacts")) {
+ $editmode = FALSE;
+ }
+
+ $links = array();
+ if(!is_null($this->getId())) {
+ if($editmode) {
+ $links[] = "<a href=\"index.php?module=contacts&CONTACTS_MAN_OP=edit&CONTACTS_contact_id=" . $this->getId() . "\">" . $_SESSION["translate"]->it("Edit Basic Info") . "</a>";
+ $links[] = "<a href=\"index.php?module=contacts&CONTACTS_Contact_OP=viewphones&CONTACTS_contact_id=" . $this->getId() . "\">" . $_SESSION["translate"]->it("Edit Phone Numbers") . "</a>";
+ $links[] = "<a href=\"index.php?module=contacts&CONTACTS_Contact_OP=viewaddresses&CONTACTS_contact_id=" . $this->getId() . "\">" . $_SESSION["translate"]->it("Edit Addresses") . "</a>";
+ } else {
+ $links[] = "<a href=\"index.php?module=contacts&CONTACTS_MAN_OP=view&CONTACTS_contact_id=" . $this->getId() . "\">" . $_SESSION["translate"]->it("View Basic Info") . "</a>";
+ $links[] = "<a href=\"index.php?module=contacts&CONTACTS_Contact_OP=viewphones&CONTACTS_contact_id=" . $this->getId() . "\">" . $_SESSION["translate"]->it("View Phone Numbers") . "</a>";
+ $links[] = "<a href=\"index.php?module=contacts&CONTACTS_Contact_OP=viewaddresses&CONTACTS_contact_id=" . $this->getId() . "\">" . $_SESSION["translate"]->it("View Addresses") . "</a>";
+ }
+ }
+ $menu = "<div align=\"right\">" . implode(" | ", $links) . "</div><br />";
+
+ return $menu;
+ }// END FUNC _showtabls
+
function _edit() {
***************
*** 155,158 ****
--- 209,213 ----
+
/* Create form */
$form = new EZform("CONTACTS_Contact_edit");
***************
*** 344,352 ****
function action() {
switch($_REQUEST["CONTACTS_Contact_OP"]) {
case "edit":
$title = $_SESSION["translate"]->it("Edit Contact Information");
! $content = $this->_edit();
break;
--- 399,432 ----
+ function _viewphones() {
+ $sql = "SELECT id FROM " . $GLOBALS["core"]->tbl_prefix . "mod_contacts_phones WHERE contact_id=" . $this->getId();
+ $results = $GLOBALS["core"]->getCol($sql);
+ foreach ($results as $phoneid)
+ $this->phones[$phoneid] = new CONTACTS_Phone($phoneid);
+ }// END FUNC _viewphones
+
+
+ function _viewaddresses() {
+ $content = "";
+ if(($_SESSION["OBJ_user"]->username == $this->getOwner()) || $_SESSION["OBJ_user"]->allow_access("contacts","edit_contacts")) {
+ $content .= "<a href=\"index.php?module=contacts&CONTACTS_MAN_OP=newaddress&CONTACTS_contact_id=" . $this->getId() . "\">" . $_SESSION["translate"]->it("Add New Address") . "</a>";
+ }
+
+ $sql = "SELECT id FROM " . $GLOBALS["core"]->tbl_prefix . "mod_contacts_addresses WHERE contact_id=" . $this->getId();
+ $results = $GLOBALS["core"]->getCol($sql);
+ foreach ($results as $addressid) {
+ $address = new CONTACTS_Address($addressid);
+ $content .= $address->_view() . "<br />";
+ }
+
+ return $content;
+ }// END FUNC _viewaddresses
+
+
function action() {
switch($_REQUEST["CONTACTS_Contact_OP"]) {
case "edit":
$title = $_SESSION["translate"]->it("Edit Contact Information");
! $content = $this->_showtabs() . $this->_edit();
break;
***************
*** 357,360 ****
--- 437,450 ----
case "delete":
$this->_delete();
+ break;
+
+ case "viewphones":
+ $title = $_SESSION["translate"]->it("Contact Telephone Information");
+ $content = $this->_showtabs() . $this->_viewphones();
+ break;
+
+ case "viewaddresses":
+ $title = $_SESSION["translate"]->it("Contact Address Information");
+ $content = $this->_showtabs() . $this->_viewaddresses();
break;
Index: Manager.php
===================================================================
RCS file: /cvsroot/phpwebsite-comm/modules/contacts/class/Manager.php,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** Manager.php 29 May 2003 17:46:55 -0000 1.6
--- Manager.php 31 May 2003 07:36:44 -0000 1.7
***************
*** 11,14 ****
--- 11,16 ----
var $phonetype = NULL;
var $addresstype = NULL;
+ var $phone = NULL;
+ var $address = NULL;
var $message = NULL;
***************
*** 81,92 ****
- /*
- 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]);
--- 83,86 ----
***************
*** 149,152 ****
--- 143,164 ----
+ function _newAddress() {
+ $this->address = new CONTACTS_Address;
+ $_REQUEST["CONTACTS_Address_OP"] = "edit";
+ }// END FUNC _newAddress
+
+
+ function _editAddress() {
+ $this->address= new CONTACTS_Address($_REQUEST["CONTACTS_address_id"]);
+ $_REQUEST["CONTACTS_Address_OP"] = "edit";
+ }// END FUNC _editAddress
+
+
+ function _deleteAddress() {
+ $this->address= new CONTACTS_Address($_REQUEST["CONTACTS_address_id"]);
+ $_REQUEST["CONTACTS_Address_OP"] = "delete";
+ }// END FUNC _editAddress
+
+
function action() {
if(PHPWS_Message::isMessage($this->message))
***************
*** 208,211 ****
--- 220,239 ----
case "deleteaddresstypes":
$this->_deleteAddressType();
+ break;
+
+ case "newaddress":
+ $this->_newAddress();
+ break;
+
+ case "editaddress":
+ $this->_editAddress();
+ break;
+
+ case "deleteaddress":
+ $this->_deleteAddress();
+ break;
+
+ case "newphone":
+ $this->_newPhone();
break;
|
|
From: <dts...@us...> - 2003-05-31 07:36:47
|
Update of /cvsroot/phpwebsite-comm/modules/contacts/boost
In directory sc8-pr-cvs1:/tmp/cvs-serv26427/boost
Modified Files:
install.sql
Log Message:
Lots of work for addresses
Index: install.sql
===================================================================
RCS file: /cvsroot/phpwebsite-comm/modules/contacts/boost/install.sql,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** install.sql 29 May 2003 17:46:54 -0000 1.4
--- install.sql 31 May 2003 07:36:43 -0000 1.5
***************
*** 80,84 ****
stateprov varchar(20) NOT NULL default '',
postalcode varchar(10) default '',
! countrycode varchar(5) NOT NULL default '',
PRIMARY KEY (id)
);
--- 80,84 ----
stateprov varchar(20) NOT NULL default '',
postalcode varchar(10) default '',
! country_id int NOT NULL default '0',
PRIMARY KEY (id)
);
|
|
From: <dts...@us...> - 2003-05-31 07:36:46
|
Update of /cvsroot/phpwebsite-comm/modules/contacts
In directory sc8-pr-cvs1:/tmp/cvs-serv26427
Modified Files:
index.php
Log Message:
Lots of work for addresses
Index: index.php
===================================================================
RCS file: /cvsroot/phpwebsite-comm/modules/contacts/index.php,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** index.php 27 May 2003 21:51:13 -0000 1.2
--- index.php 31 May 2003 07:36:32 -0000 1.3
***************
*** 18,21 ****
--- 18,27 ----
$_SESSION["CONTACTS_Manager"]->contact->action();
+ if(isset($_REQUEST["CONTACTS_Address_OP"]) && isset($_SESSION["CONTACTS_Manager"]->address))
+ $_SESSION["CONTACTS_Manager"]->address->action();
+
+ if(isset($_REQUEST["CONTACTS_Phone_OP"]) && isset($_SESSION["CONTACTS_Manager"]->phone))
+ $_SESSION["CONTACTS_Manager"]->phone->action();
+
if(isset($_REQUEST["CONTACTS_Country_OP"]) && isset($_SESSION["CONTACTS_Manager"]->country))
$_SESSION["CONTACTS_Manager"]->country->action();
|
|
From: <dts...@us...> - 2003-05-30 20:58:40
|
Update of /cvsroot/phpwebsite-comm/modules/contacts/boost
In directory sc8-pr-cvs1:/tmp/cvs-serv29639/boost
Modified Files:
install.php
Log Message:
Pre-loading items
Index: install.php
===================================================================
RCS file: /cvsroot/phpwebsite-comm/modules/contacts/boost/install.php,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** install.php 27 May 2003 16:47:49 -0000 1.1
--- install.php 30 May 2003 20:07:41 -0000 1.2
***************
*** 27,30 ****
--- 27,70 ----
}
+
+ // Pre-Add Phone Types
+ $phonetype["owner"] = "install";
+ $phonetype["editor"] = "install";
+ $phonetype["name"] = "Home";
+ $phonetype["abbreviation"] = "H";
+ $GLOBALS["core"]->sqlInsert($phonetype, "mod_contacts_phonetypes");
+ $phonetype["name"] = "Work";
+ $phonetype["abbreviation"] = "W";
+ $GLOBALS["core"]->sqlInsert($phonetype, "mod_contacts_phonetypes");
+ $phonetype["name"] = "Cell";
+ $phonetype["abbreviation"] = "C";
+ $GLOBALS["core"]->sqlInsert($phonetype, "mod_contacts_phonetypes");
+ $phonetype["name"] = "Pager";
+ $phonetype["abbreviation"] = "P";
+ $GLOBALS["core"]->sqlInsert($phonetype, "mod_contacts_phonetypes");
+
+ // Pre-Add Address Types
+ $addresstype["owner"] = "install";
+ $addresstype["editor"] = "install";
+ $addresstype["name"] = "Home";
+ $addresstype["abbreviation"] = "H";
+ $GLOBALS["core"]->sqlInsert($addresstype, "mod_contacts_addresstypes");
+ $addresstype["name"] = "Work";
+ $addresstype["abbreviation"] = "W";
+ $GLOBALS["core"]->sqlInsert($addresstype, "mod_contacts_addresstypes");
+
+ // Pre-Add Countries
+ if(file_exists("mod/contacts/boost/countries.txt")) {
+ $lines = file("mod/contacts/boost/countries.txt");
+ foreach ($lines as $line) {
+ list($code,$country) = explode(":",$line);
+ $countries["owner"] = "install";
+ $countries["editor"] = "install";
+ $countries["country"] = $country;
+ $countries["code"] = $code;
+ $GLOBALS["core"]->sqlInsert($countries, "mod_contacts_countries");
+ }
+ }
+
} else {
$content .= "There was a problem writing to the database!<br />";
|
|
From: <dts...@us...> - 2003-05-30 20:52:25
|
Update of /cvsroot/phpwebsite-comm/modules/contacts/boost In directory sc8-pr-cvs1:/tmp/cvs-serv22799/boost Added Files: countries.txt Log Message: File of countries needed for country list --- NEW FILE: countries.txt --- ADR:Andorra ALG:Algeria AMS:American Samoa ARB:Aruba ARG:Argentina AST:Austria AUS:Australia AZR:Azores BAH:Bahamas BAN:Bangladesh BAR:Barbados BEL:Belgium BER:Bermuda BLR:Belarus BLZ:Belize BOL:Bolivia BRA:Brazil BRN:Bahrain BUL:Bulgaria BVI:British Virgin Islands BWI:British West Indies CAN:Canada CHI:Chile COL:Colombia COS:Costa Rica CRO:Croatia CSF:Czech and Slovak Federative Republic CUB:Cuba CYI:Cayman Islands CYP:Cyprus CZE:Czechoslovakia (former) CZN:Canal Zone CZR:Czech Republic DEN:Denmark DOR:Dominican Republic EAF:East Africa ECU:Ecuador EGR:East Germany (former) EGY:Egypt ELS:El Salvador EST:Estonia ETH:Ethiopia FIJ:Fiji FIN:Finland FRA:France FRP:French Polynesia FWI:French West Indies GAB:Gabon GER:Germany GRC:Greece GSY:Guernsey GUA:Guatemala GUY:Guyana GWI:Grenada West Indies HAI:Haiti HKG:Hong Kong HON:Honduras HUN:Hungary ICE:Iceland IDN:Indonesia IND:India IRE:Ireland (excluding Northern Ireland) IRN:Iran IRQ:Iraq ISR:Israel ITA:Italy JAM:Jamaica JAP:Japan JPN:Japan JRD:Jordan KNY:Kenya KOR:Korea KUW:Kuwait LAT:Latvia LEB:Lebanon LIT:Lithuania LUX:Luxembourg MAC:Macao MAD:Madagascar MAL:Malaysia MAU:Mauritius MEX:Mexico MIQ:Miquelon MLD:Moldova MON:Monaco MOR:Morocco MTA:Malta NAM:Namibia NAN:Netherlands Antilles NCG:Nicaragua NEP:Nepal NET:Netherlands NIG:Nigeria NKR:North Korea NOR:Norway NVN:North Vietnam NZL:New Zealand OMN:Oman PAK:Pakistan PAN:Panama PAR:Paraguay PER:Peru PHI:Philippines POL:Poland POR:Portugal RCH:Republic of China RGA:Republic of Geo ROM:Romania RSL:Republic of Slovenia RUM:Rumania RUS:Russia SAF:South Africa SAM:San Marino SAU:Saudi Arabia SCT:Scotland SFR:Slovok Federate SIN:Singapore SKR:South Korea SLV:Slovenia SNM:San Marino SPA:Spain SRI:Sri Lanka SUR:Surinam SVN:South Vietnam SWE:Sweden SWI:Switzerland TAI:Taiwan THI:Thailand TKY:Turkey TRI:Trinidad TZN:Tanzania UAE:United Arab Emirates UKG:United Kingdom UKR:Ukraine URU:Uruguay USA:United States USR:Russia VEN:Venezuela VLA:Venezuela WAF:West Africa WGR:West Germany (former) WIN:West Indies YUG:Yugoslavia ZIM:Zimbabwe |
|
From: <dts...@us...> - 2003-05-30 20:33:00
|
Update of /cvsroot/phpwebsite-comm/modules/contacts/img In directory sc8-pr-cvs1:/tmp/cvs-serv14310/img Modified Files: contacts.svg Log Message: Updates Index: contacts.svg =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/contacts/img/contacts.svg,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** contacts.svg 30 May 2003 17:26:58 -0000 1.1 --- contacts.svg 30 May 2003 19:33:34 -0000 1.2 *************** *** 1,8880 **** ! <?xml version="1.0" standalone="no"?> ! <!-- Generator: Mayura Draw 4.1 --> ! <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN" ! "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd" [ ! <!ENTITY st0 "stroke:none;fill:#fefefe"> ! <!ENTITY st1 "stroke:none;fill:#555353"> ! <!ENTITY st2 "stroke:none;fill:#2a2828"> ! <!ENTITY st3 "stroke:none;fill:#f3f3f3"> ! <!ENTITY st4 "stroke:none;fill:#dadad9"> ! <!ENTITY st5 "stroke:none;fill:#060504"> [...16533 lines suppressed...] ! id="path3941" /> ! <path ! style="stroke:none;fill:#eeeeee" ! d="M37.55 54.4 l0 -1 -1 0 0 -1 -1 0 0 2 1 0 1 0 " ! id="path3942" /> ! <path ! style="stroke:none;fill:#d6d6d6" ! d="M37.55 53.4 l0 -1 -1 0 0 1 1 0 " ! id="path3943" /> ! <path ! style="stroke:none;fill:#f2f2f2" ! d="M38.55 54.4 l-1 0 -1 0 0 1 2 0 0 -1 " ! id="path3944" /> ! <path ! style="stroke:none;fill:#f6f6f6" ! d="M27.55 53.4 l1 0 0 -1 -1 0 0 1 " ! id="path3945" /> ! </g> ! </g> </svg> |
|
From: <dts...@us...> - 2003-05-30 19:33:38
|
Update of /cvsroot/phpwebsite-comm/modules/contacts/templates/contacts
In directory sc8-pr-cvs1:/tmp/cvs-serv14310/templates/contacts
Modified Files:
list.tpl row.tpl
Log Message:
Updates
Index: list.tpl
===================================================================
RCS file: /cvsroot/phpwebsite-comm/modules/contacts/templates/contacts/list.tpl,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** list.tpl 30 May 2003 13:33:40 -0000 1.2
--- list.tpl 30 May 2003 19:33:35 -0000 1.3
***************
*** 4,7 ****
--- 4,8 ----
<td class="smalltext"><b>{SURNAME_LABEL}</b></td>
<td class="smalltext"><b>{GIVENNAME_LABEL}</b></td>
+ <td class="smalltext"><b>{EMAIL_LABEL}</b></td>
</tr>
{LIST_ITEMS}
***************
*** 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 -->
--- 10,14 ----
<tr class="bg_medium">
<td>{NAV_LIMITS}    {NAV_BACKWARD} {NAV_SECTIONS} {NAV_FORWARD}</td>
! <td align="right" colspan="3">{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.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** row.tpl 30 May 2003 13:33:40 -0000 1.2
--- row.tpl 30 May 2003 19:33:35 -0000 1.3
***************
*** 3,5 ****
--- 3,6 ----
<td class="smalltext">{SURNAME}</td>
<td class="smalltext">{GIVENNAME}</td>
+ <td class="smalltext"><a href="mailto:{EMAIL}">{EMAIL}</a></td>
</tr>
|
|
From: <dts...@us...> - 2003-05-30 19:33:37
|
Update of /cvsroot/phpwebsite-comm/modules/contacts/conf
In directory sc8-pr-cvs1:/tmp/cvs-serv14310/conf
Modified Files:
manager.php
Log Message:
Updates
Index: manager.php
===================================================================
RCS file: /cvsroot/phpwebsite-comm/modules/contacts/conf/manager.php,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** manager.php 30 May 2003 13:33:33 -0000 1.5
--- manager.php 30 May 2003 19:33:30 -0000 1.6
***************
*** 22,25 ****
--- 22,26 ----
$contactsColumns = array( "surname"=>$_SESSION["translate"]->it("Surname"),
"givenname"=>$_SESSION["translate"]->it("Given Name"),
+ "email"=>$_SESSION["translate"]->it("Email"),
"id"=>NULL );
|
|
From: <dts...@us...> - 2003-05-30 17:27:42
|
Update of /cvsroot/phpwebsite-comm/modules/contacts/img In directory sc8-pr-cvs1:/tmp/cvs-serv23939/img Added Files: contacts.svg Log Message: Welcome to svg land --- NEW FILE: contacts.svg --- <?xml version="1.0" standalone="no"?> <!-- Generator: Mayura Draw 4.1 --> <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN" "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd" [ <!ENTITY st0 "stroke:none;fill:#fefefe"> <!ENTITY st1 "stroke:none;fill:#555353"> <!ENTITY st2 "stroke:none;fill:#2a2828"> <!ENTITY st3 "stroke:none;fill:#f3f3f3"> <!ENTITY st4 "stroke:none;fill:#dadad9"> <!ENTITY st5 "stroke:none;fill:#060504"> <!ENTITY st6 "stroke:none;fill:#000000"> <!ENTITY st7 "stroke:none;fill:#908e8f"> <!ENTITY st8 "stroke:none;fill:#c5c4c4"> <!ENTITY st9 "stroke:none;fill:#201d1d"> <!ENTITY st10 "stroke:none;fill:#e9e9e9"> <!ENTITY st11 "stroke:none;fill:#474446"> <!ENTITY st12 "stroke:none;fill:#f6f6f6"> <!ENTITY st13 "stroke:none;fill:#c5c3c4"> <!ENTITY st14 "stroke:none;fill:#eae9e8"> [...8841 lines suppressed...] 1 0 "/> <path style="&st69;" d="M38.552 54.379 l-1 0 -1 0 0 1 2 0 0 -1 "/> <path style="&st12;" d="M27.552 53.379 l1 0 0 -1 -1 0 0 1 "/> </g> </g> </svg> |
|
From: <dts...@us...> - 2003-05-30 17:25:54
|
Update of /cvsroot/phpwebsite-comm/modules/phpwsbb/img In directory sc8-pr-cvs1:/tmp/cvs-serv23308/img Added Files: phpwsbb.svg Log Message: Welcome to SVG land --- NEW FILE: phpwsbb.svg --- <?xml version="1.0" standalone="no"?> <!-- Generator: Mayura Draw 4.1 --> <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN" "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd" [ <!ENTITY st0 "stroke:none;fill:#ffffff"> <!ENTITY st1 "stroke:none;fill:#e1e1e1"> <!ENTITY st2 "stroke:none;fill:#000000"> <!ENTITY st3 "stroke:none;fill:#686868"> <!ENTITY st4 "stroke:none;fill:#ffe1e1"> <!ENTITY st5 "stroke:none;fill:#ff6868"> <!ENTITY st6 "stroke:none;fill:#ff0000"> <!ENTITY st7 "stroke:none;fill:#999999"> <!ENTITY st8 "stroke:none;fill:#e1e1ff"> <!ENTITY st9 "stroke:none;fill:#c0c0ff"> <!ENTITY st10 "stroke:none;fill:#c0c0c0"> <!ENTITY st11 "stroke:none;fill:#9999c0"> <!ENTITY st12 "stroke:none;fill:#e1c0ff"> <!ENTITY st13 "stroke:none;fill:#990000"> <!ENTITY st14 "stroke:none;fill:#c0e1ff"> [...3778 lines suppressed...] 0 1 1 0 "/> <path style="&st3;" d="M40.897 55.759 l-1 0 0 1 1 0 0 -1 "/> <path style="&st20;" d="M36.897 40.759 l-1 0 0 1 1 0 0 -1 "/> </g> </g> </svg> |
|
From: <dts...@us...> - 2003-05-30 17:25:18
|
Update of /cvsroot/phpwebsite-comm/modules/phpwsbb/img In directory sc8-pr-cvs1:/tmp/cvs-serv22883/img Log Message: Directory /cvsroot/phpwebsite-comm/modules/phpwsbb/img added to the repository |
|
From: <dts...@us...> - 2003-05-30 14:11:21
|
Update of /cvsroot/phpwebsite-comm/modules/contacts/img In directory sc8-pr-cvs1:/tmp/cvs-serv14885/img Log Message: Directory /cvsroot/phpwebsite-comm/modules/contacts/img added to the repository |
|
From: <dts...@us...> - 2003-05-30 13:49:08
|
Update of /cvsroot/phpwebsite-comm/modules/contacts/class
In directory sc8-pr-cvs1:/tmp/cvs-serv10068/class
Modified Files:
Contact.php
Log Message:
Finishing core contact saving. Ready to add phone/address saving
Index: Contact.php
===================================================================
RCS file: /cvsroot/phpwebsite-comm/modules/contacts/class/Contact.php,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** Contact.php 29 May 2003 17:54:22 -0000 1.5
--- Contact.php 30 May 2003 13:49:00 -0000 1.6
***************
*** 128,134 ****
$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
--- 128,141 ----
$this->init();
} else {
! // Find contact owned by this username
! $sql = "select id from " . $GLOBALS["core"]->tbl_prefix . "mod_contacts_contacts where owner='" . $_SESSION["OBJ_user"]->username . "'";
! $results = $GLOBALS["core"]->getCol($sql);
! if(sizeof($results) > 0) {
! $this->setId($results[0]);
! $this->init();
! } else {
! $this->setLabel($_SESSION["OBJ_user"]->username);
! $this->setOwner($_SESSION["OBJ_user"]->username);
! }
}
}// END FUNC CONTACTS_Contact
***************
*** 289,294 ****
} 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
--- 296,301 ----
} else {
$GLOBALS["CNT_contacts"]["content"] .= $_SESSION["translate"]->it("The contact was successfully saved.") . "<br />\n";
! $_REQUEST["CONTACTS_MAN_OP"] = "list";
! $_SESSION["CONTACTS_Manager"]->managerAction();
}
}// END FUNC _save
***************
*** 307,318 ****
$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 {
--- 314,325 ----
$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"] = "list";
! $_SESSION["CONTACTS_Manager"]->managerAction();
} 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"] = "list";
! $_REQUEST["CONTACTS_Manager"]->managerAction();
} else {
|
|
From: <dts...@us...> - 2003-05-30 13:33:47
|
Update of /cvsroot/phpwebsite-comm/modules/contacts/conf
In directory sc8-pr-cvs1:/tmp/cvs-serv4128/conf
Modified Files:
manager.php
Log Message:
Saving and listing template updates
Index: manager.php
===================================================================
RCS file: /cvsroot/phpwebsite-comm/modules/contacts/conf/manager.php,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** manager.php 28 May 2003 20:34:58 -0000 1.4
--- manager.php 30 May 2003 13:33:33 -0000 1.5
***************
*** 20,24 ****
* CONTACTS
*/
! $contactsColumns = array( "familyname"=>$_SESSION["translate"]->it("Family Name"),
"givenname"=>$_SESSION["translate"]->it("Given Name"),
"id"=>NULL );
--- 20,24 ----
* CONTACTS
*/
! $contactsColumns = array( "surname"=>$_SESSION["translate"]->it("Surname"),
"givenname"=>$_SESSION["translate"]->it("Given Name"),
"id"=>NULL );
|