Skip to content
This repository
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 153 lines (129 sloc) 5.315 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153
<?php
/** Ofuz Open Source version is released under the GNU Affero General Public License, please read the full license at: http://www.gnu.org/licenses/agpl-3.0.html **/
// Copyright 2008 - 2010 all rights reserved, SQLFusion LLC, info@sqlfusion.com
/** Ofuz Open Source version is released under the GNU Affero General Public License, please read the full license at: http://www.gnu.org/licenses/agpl-3.0.html **/

  $pageTitle = 'Ofuz :: Setup Public Profile';
  $Author = 'SQLFusion LLC';
  $Keywords = 'Keywords for search engine';
  $Description = 'Description for search engine';
  $background_color = 'white';
  include_once('config.php');
  include_once('includes/ofuz_check_access.script.inc.php');
  include_once('includes/header.inc.php');
     
?>
<style type="text/css">
#simplemodal-overlay {background-color:#000;}
#simplemodal-container {background-color:#333; height:auto; border:8px solid #444; padding:12px;}
</style>

<?php $do_feedback = new Feedback(); $do_feedback->createFeedbackBox(); ?>
<table class="layout_columns">
<tr>
<td class="layout_lmargin"></td>
<td>
<div class="layout_content">
<?php $thistab = 'Contacts'; include_once('includes/ofuz_navtabs.php'); ?>
<?php $do_breadcrumb = new Breadcrumb(); $do_breadcrumb->getBreadcrumbs(); ?>
<div class="grayline1"></div>
<div class="spacerblock_20"></div>
<div class="mainheader">
<div class="pad20">
<span class="headline11"><?php echo _('Setup Public Profile');?></span>
</div>
</div>
<div class="contentfull">
<div class="messageshadow">
<div class="messages" style="font-size:1.8em;">Ofuz Getting started wizard</div>
</div>

<div align="center">
<p id="pYourFirstProject" style="font-size:1.4em;">Setup Public Profile</p>

<div id="setup_public_profile">
<div class="spacerblock_20"></div>
<table width="450">
<tr>
<td>
<?php
  if (!is_object($_SESSION['ContactEditSave'])) {
    $ContactEdit = new Contact($GLOBALS['conx']);
    $ContactEdit->sessionPersistent("ContactEditSave", "index.php", 120);
  }
  if (isset($_SESSION['do_User']->idcontact)) {
     $_SESSION['ContactEditSave']->getId((int)$_SESSION['do_User']->idcontact);
  }

  $e_fullContact = new Event("ContactEditSave->eventValuesFromForm");
  $e_fullContact->setLevel(1999);
  $e_fullContact->setGotFile(true);
  $e_fullContact->addEventAction("ContactEditSave->update", 2000);
  $e_fullContact->addEventAction("ContactPhone->eventSavePhones", 2001);
  $e_fullContact->addEventAction("ContactEmail->eventSaveEmails", 2002);
  $e_fullContact->addEventAction("ContactInstantMessage->eventSaveIM", 2003);
  $e_fullContact->addEventAction("ContactAddress->eventSaveContactAddress", 2004);
  $e_fullContact->addEventAction("ContactWebsite->eventSaveWebsites", 2005);
  $e_fullContact->addEventAction("ContactEditSave->eventUpdateWebView", 2030);
  $e_fullContact->addEventAction("mydb.gotoPage", 2333);

  $e_fullContact->addParam("goto", "index.php");
  echo $e_fullContact->getFormHeader();
  echo $e_fullContact->getFormEvent();
  
  $_SESSION['ContactEditSave']->setFields("contact");

  $_SESSION['ContactEditSave']->setApplyRegistry(true, "Form");
?>

<div class="in280x20">
<?php echo _('First name');?><br />
<?php echo $_SESSION['ContactEditSave']->firstname; ?>
</div>

<div class="in280x20">
<?php echo _('Last name');?><br />
<?php echo $_SESSION['ContactEditSave']->lastname; ?>
</div>

<div class="in290x18">
<?php echo _('Title'); ?><br />
<?php echo $_SESSION['ContactEditSave']->position; ?>
</div>

<div class="in290x18">
<?php echo _('Company');?><br />
<?php echo $_SESSION['ContactEditSave']->company; ?>
</div>

<div class="in290x18">
<?php echo _('Picture');?><br />
<?php echo $_SESSION['ContactEditSave']->picture; ?>
</div>

<?php
  echo "<h3>"._('Phone')."</h3>";
  $ContactPhone = $_SESSION['ContactEditSave']->getChildContactPhone();
  echo $ContactPhone->formMultiEntry();

  echo "<h3>"._('Email')."</h3>";
  $ContactEmail = $_SESSION['ContactEditSave']->getChildContactEmail();
  echo $ContactEmail->formMultiEntry();
  echo "</b>";

  echo "<h3>"._('IM')."</h3>";
  $ContactInstantMessage = $_SESSION['ContactEditSave']->getChildContactInstantMessage();
  echo $ContactInstantMessage->formMultiEntry();

  echo "<h3>"._("Website")."</h3>";
  $ContactWebsite = $_SESSION['ContactEditSave']->getChildContactWebsite();
  echo $ContactWebsite->formMultiEntry();

  echo "<h3>"._('Contact Address')."</h3>";
  $ContactAddress = $_SESSION['ContactEditSave']->getChildContactAddress();
  echo $ContactAddress->formMultiEntry();

  echo "<br><br>";
  //echo $e_fullContact->getFormFooter("Save");
  
?>
<?php
$_SESSION['ContactEditSave']->setApplyRegistry(false);
?>
</td>
</tr>
</table>

</div>
<div class="spacerblock_40"></div>
<div>
<a id="next" href="javascript:;"><input type="image" src="/images/next.jpg" border="0" /></a> <br />
<a href="index.php" title="">Skip >></a>
</div>
<div class="spacerblock_80"></div>

<div class="layout_footer"></div>

</div>
</form>
</td>
<td class="layout_rmargin"></td>
</tr></table>
</body>
</html>
Something went wrong with that request. Please try again.