-
Notifications
You must be signed in to change notification settings - Fork 1
/
contact_addcompany.php
executable file
·89 lines (60 loc) · 2.22 KB
/
contact_addcompany.php
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
<?php
require_once('app_code/config.inc.php');
require_once('class/class.contacts.php');
require_once('app_code/zipcode.class.php');
require_once('app_code/class.Event_Contacts.php');
$page = new basic_page();
$page->auth->Checklogin();
$ajax=new PHPLiveX();
$em = new Event_Contacts();
$em->SetUserID($page->auth->Get_user_id());
$ajax->AjaxifyObjects(array("em"));
$page -> setPageKeywords('');
$page -> setPageDescription('');
$page -> setPageTitle("CONTACT ADD COMPANY");
$page -> setActiveButton('2');
//$page -> setInnerNav('');
//$page -> setImportCss1('main_style.css');
//$page -> setImportCss2('form.css');
$page -> SetDynamicCSS_1('main_style.php');
$page -> SetDynamicCSS_2('form.php');
$page -> setImportCss3('');
$page -> SetDynamicCSS_3('css/all.php');
$page -> setImportCss5('');
$page -> setExtJavaScripts1('<script src="sprockets.js" type="text/javascript"></script>'); // might not need
//*********************Page Style *******************************//
// used to set page styles. This should be used sparingly. External css should be used instead.
$page_style = '
';
$page -> setPageStyle($page_style);
$page -> displayPageTop();
// **********************Start html for content column ****************************//
$ajax->Run(); // Must be called inside the 'html' or 'body' tags
?>
<div id="content_column_header">
<div class="heading"><img src="images/person.gif" class="image_border" align="absmiddle" />Add a new company</div>
</div>
<div class="contact_form">
<div><?php
if($_POST['submit']=='Add Contact')
{
$em->AddContact('server','Company');
}
else
{
$em->AddContact('local','Company');
}
?></div>
</div>
<?php
// **********************Closes the Content Column and begins Info Column ****************************//
$page-> printContentColumnEnd();
// **********************Start code for Info Column ****************************//
?>
<div class="form_main">
<?php /*?><div><a href="contact_addperson.php"><img src="images/add_person.jpg" border="0" /></a></div><?php */?>
<div><a href="contact_addcompany.php"><img src="images/add_company.jpg" /></a></div>
</div>
<?php
$page -> displayPageBottom();
?>