<div class="mid body"> Fax sent to <?=tel_format($tel)?>. </div>
<label for="p_title">Job Title at Company</label> <input type="text" name="p_title" id="p_title" value="<?=set_value('p_title')?>"/> <label for="p_email">Email Address</label> <input type="text" name="p_email" id="p_email" value="<?=set_value('p_email',$data['email'])?>"/> <a class="button">Add Phone Number</a> <fieldset class="hide"> <label for="p_phone_type">Phone Number Type</label> <?=form_dropdown('p_phone_type',$this->data->type_tel(),set_value('p_phone_type'))?> <label for="p_phone">Phone Number</label> <select name="p_phone" class="otheropt"> <option disabled="disabled">Select One</option> <option>No Personal Phone</option> <option value="<?=$data['phone']?>"><?=tel_format($data['phone'],FALSE)?></option> <option value="other">Other</option> </select><br/> <input type="text" name="p_phone_other" value="<?=set_value('p_phone_other')?>" class="hide"/> </fieldset> <a class="button">Add Address</a> <fieldset class="hide"> <label for="p_addr_type">Address Type</label> <?=form_dropdown('p_addr_type',$this->data->type_address(),set_value('p_addr_type'))?> <label for="p_addr1">Street Address</label> <input type="text" name="p_addr1" value="<?=set_value('p_addr1')?>" id="p_addr1"/><br/> <input type="text" name="p_addr2" value="<?=set_value('p_addr2')?>" id="p_addr2"/> <label for="p_city">City</label>
<?php if ($HUD['isCompany'] == false) : ?> <div id="tab-accounts" class="tab"> <?php $accounts = $this->users->getCompaniesByEntity($eid) ?> <?php foreach ($accounts as $account) : ?> <div class="person"> <div class="profile"> <h3><a href="#" onclick="updateHUD(<?=$account['eid'] ?>)"><?=$account['name'] ?></a></h3> <div><?=$account['jobTitle'] ?></div> <ul class="email"> <?php foreach ($account['email'] as $email) : ?> <li class="mobile"><?=$email['email'] ?></li> <?php endforeach ?> </ul> <ul class="phones"> <?php foreach ($account['phone'] as $phone) : ?> <li class="mobile"><?=tel_format($phone['num']) ?></li> <?php endforeach ?> </ul> </div> <div class="clear"></div> </div> <?php endforeach ?> </div> <?php endif ?> </div> </div> <?php else : ?> <div id="HUD" class="none"> Error Loading HUD Data </div>
{ echo tel_format($entry['source']); } else { echo $entry['source']; } ?> <?=date_relative(strtotime($entry['timestamp']))?>.</em> </div> </div> </div> <?php if ($entry['type']=='phone' && is_array($entry['cdr'])) : ?> <div class="body mid entry phonedata"> <ul> <li><strong>Call Detail Record</strong></li> <li class="phone"><?=tel_format($entry['cdr']['src'])?></li> <li class="duration"><?=timespan(0,$entry['cdr']['duration'])?></li> <?php if (isset($entry['attachments']['recording.mp3'])) : ?> <li class="recording"> <audio controls="controls" src="<?=site_url('communication/attachment/'.$entry['attachments']['recording.mp3']['name'])?>" preload="metadata"> Your browser does not support audio playback. </audio> </li> <?php endif; ?> </ul> </div> <?php endif; ?> <?php switch ($entry['status']) { case 'closed': $msg = 'Ticket closed by '.profile_link($entry['status_pid']).'.';
<ul class="addresses"> <?php foreach ($contact['address'] as $address) : ?> <?php $address['full'] = $address['addr1'].' '.$address['addr2'].' '.$address['city'].' '.$address['state'].' '.$address['zip5']; ?> <li> <span class="label"><?php echo $address['label'] ?></span> <address> <a href="#" onclick="displayMap('<?php echo urlencode($address['full']) ?>');"> <?php echo $address['addr1']; if ($address['addr2'] != null) : ?><br/><?php endif; ?> <?php echo $address['addr2'] ?><br/> <?php echo $address['city'] ?>, <?php echo $address['state'] ?> <?php echo $address['zip5']; if ($address['zip4'] != null) : ?>-<?php endif; echo $address['zip4']; ?> </a> </address> </li> <?php endforeach; ?> </ul> <?php endif; ?> <?php if (isset($contact['phone'][0])) : ?> <ul class="phones"> <?php foreach ($contact['phone'] as $phone) : ?> <li> <span class="label"><?php echo $phone['label'] ?></span> <?php echo tel_format($phone['num']); ?> </li> <?php endforeach; ?> </ul> <?php endif; ?> <div class="clear"></div> </div> <?php endforeach; ?> </div> </div>
<input type="hidden" name="addr2" value="" /> <input type="hidden" name="city" value="<?=$biz['city']?>" /> <input type="hidden" name="state" value="<?=$biz['state']?>" /> <input type="hidden" name="zip5" value="" /> <input type="hidden" name="notes" value="<?=$biz['url']?>" /> <input type="image" src="<?=assets_url()?>images/global/icons/tick_14.png" class="tip" title="Save as sales lead."/> </form> <form method="post" action="<?=$this->input->server('REQUEST_URI')?>"> <input type="hidden" name="id" value="<?=$biz['id']?>"/> <input type="image" name="status" value="0" src="<?=assets_url()?>images/global/icons/cross_14.png" class="tip" title="Mark lead as dead."/> </form> </div> <strong><?=$biz['name']?></strong> <address><?=$biz['addr']?><br/><?=$biz['city']?>, <?=$biz['state']?></address> <p class="phone"><?=tel_format($biz['phone'])?></p> <p class="url"><a href="<?=$biz['url']?>"><?=ellipsize($biz['url'],45,1)?></a></p> <p class="cats"><?=$biz['cats']?></p> <?php else : ?> <strong><?=$biz['name']?></strong> <p class="dead">Sales lead is dead.</p> <?php endif; ?> </div> <?php endforeach; ?> <?php else: ?> No results to display. <?php endif; ?> <?=$pagination?>
<button action="submit" name="action" value="drop_lead" class="red">Mark Lead as Dead</button> </div> </form> <?php $name =null; if ($lead['firstName'] != null || $lead['lastName'] != null) $name.= $lead['firstName'].' '.$lead['lastName'].' at '; $name.= $lead['companyName']; ?> <h4 title="<?=htmlspecialchars($name)?>"> <?=character_limiter($name,30)?> </h4> <h5>Contact Information</h5> <p> <?php if($lead['phone'] != null): ?> <strong>Phone:</strong> <?=tel_format($lead['phone'])?><br/> <?php endif; ?> <?php if($lead['email'] != null): ?> <strong>Email:</strong> <?=$lead['email']?><br/> <?php endif; ?> <?php if($lead['addr1'] != null): ?> <strong>Address:</strong><br/> <address> <?=$lead['addr1']?><br/> <?php if($lead['addr2'] != null) echo $lead['addr2'] ?> <?=$lead['city']?>, <?=$lead['state']?> <?=$lead['zip5']?> </address> <?php endif; ?> </p>
<?php foreach ($tickets as $tik): ?> <div class="body mid tik"> <div class="tik_rt"> <strong>Ticket ID:</strong> <?=tikid_format($tik['tikid'])?> <ul> <li><a href="<?=site_url('communication/ticket_view/'.tikid_format($tik['tikid']))?>" class="button">View Ticket</a></li> <li><a href="<?=site_url('communication/ticket_view/'.tikid_format($tik['tikid']))?>#reply" class="button green">Send Reply</a></li> </ul> </div> <div class="tik_lt"> <h4> <a href="<?=site_url('communication/ticket_view/'.tikid_format($tik['tikid']))?>"> <?= ($tik['type']=='phone') ? 'Phone Call From '.tel_format($tik['source'], FALSE) : character_limiter($tik['subject'],45)?> </a> </h4> <p> Opened <?=date_relative(strtotime($tik['timestamp'])) ?> by <strong> <?php if (element('pid',$tik) == true) echo profile_link(element('pid',$tik),element('name',$tik)); elseif ($tik['type'] == 'p') echo tel_format($tik['source']); else echo $tik['source']; ?> </strong>.</p> </div> </div> <?php endforeach; ?> <?php if (count($tickets) === 0) : ?> <div class="body mid tik"> There are no tickets in this queue that require your attention. <br/><br/><a href="<?=current_url()?>?show_inactive=1" class="button">Show All Tickets</a><br/> </div> <?php endif; ?> </div>
<span class="vcard"> <span class="fn"><strong><?=$first_name.' '.$last_name?></strong></span><br/> <span class="org"><strong><?=$org_name?></strong></span><br/><br/> <span class="email"><?=$email?></span><br/><br/> <address class="adr"> <span class="street-address"><?=$address1?><br/></span> <span class="street-address"><?php if ($address2) echo $address2.'<br/>'?></span> <span class="street-address"><?php if ($address3) echo $address3.'<br/>'?></span> <span class="locality"><?=$city?></span>, <span class="region"><?=$state?></span> <span class="postal-code"><?=$postal_code?></span><br/> </address><br/><br/> <span class="tel"><span class="value"><?=tel_format($phone)?></span></span><br/> <?php if (empty($fax) !== true) : ?><span class="tel"><span class="type hide">Fax</span><span class="value"><?=tel_format($fax)?></span></span><br/><?php endif; ?> </span>
<h4>Email Address</h4> <ul> <?php foreach($profile->email->fetch_array() as $email) : ?> <li><?=$email?></li> <?php endforeach; ?> </ul> <a href="#" class="button" id="btnAddEmail">Add Email</a> </div> <div id="pf-phone"> <h4>Phone Number</h4> <ul> <?php foreach($profile->tel->fetch_array() as $tel) : ?> <li class="icn phone <?=$tel->type?>" title="<?=$tel->type?>"> <span class="tel"> <span class="type hide"><?=$tel->type?></span> <span class="value"><?=tel_format($tel) ?></span> </span> </li> <?php endforeach; ?> </ul> <a href="#" class="button" id="btnAddPhone">Add Phone</a> </div> <div class="clear"></div> </div> <div class="mid body"> <a href="#" class="button floatr in_development">Add Manager</a> <h4>Account Managers</h4> <?php if ($profile->is_company() && count($profile->manager->fetch_array()) === 0) : ?> <div class="msg warning"> WARNING: There is no person with access to this account. Web-based user account management is not possible.