-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaddedit.php
More file actions
127 lines (119 loc) · 5 KB
/
Copy pathaddedit.php
File metadata and controls
127 lines (119 loc) · 5 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
<?php
/* Hosting module -> $Id: $ */
$company_id = intval( dPgetParam( $_GET, "company_id", 0 ) );
$hosting_id = intval( dPgetParam( $_GET, "hosting_id", 0 ) );
$domain_id = intval( dPgetParam( $_GET, "domain_id", 0 ) );
require_once( $AppUI->getModuleClass ('companies' ) );
$row = new CCompany();
$companies = $row->getAllowedRecords( $AppUI->user_id, 'company_id,company_name', 'company_name' );
$companies = arrayMerge( array( '0'=>'' ), $companies );
// setup the title block
$ttl = $project_id > 0 ? "Edit Hosting/Domain" : "New Hosting/Domain";
$titleBlock = new CTitleBlock( $ttl, 'applet3-48.png', $m, "$m.$a" );
$titleBlock->addCrumb( "?m=hosting", "list all" );
$titleBlock->addCrumbDelete( 'delete domain', true, $msg );
$titleBlock->show();
$row = new CHosting();
if(isset($domain_id)) $row->load($domain_id);
?>
<script language="javascript">
<!--
function delIt(){
var form = document.editFrm;
if(confirm( "Are you sure you would like to delete this domain?" )) {
form.del.value = "<?php echo $domain_id;?>";
form.submit();
}
}
-->
</script>
<table cellspacing="0" cellpadding="4" border="0" width="100%" class="std">
<form name="editFrm" action="./index.php?m=hosting" method="post">
<input type="hidden" name="dosql" value="do_hosting_aed" />
<input type="hidden" name="domain_id" value="<?php echo $domain_id;?>" />
<input type="hidden" name="hosting_id" value="<?php echo $hosting_id?>" />
<input type="hidden" name="del" value="0" />
<tr>
<td width="50%" valign="top">
<table cellspacing="0" cellpadding="2" border="0">
<tr>
<td align="right" nowrap="nowrap"><?php echo $AppUI->_('Domain Name');?></td>
<td width="100%" colspan="2">
<input type="text" name="domain_name" value="<?php echo dPformSafe( $row->domain_name );?>" size="100" maxlength="150" onBlur="setShort();" class="text" />
</td>
</tr>
<tr>
<td align="right" nowrap="nowrap"><?php echo $AppUI->_('Company');?></td>
<td width="100%" nowrap="nowrap" colspan="2">
<?php
echo arraySelect( $companies, 'company_id', 'class="text" size="1"', $row->company_id );
?> *</td>
</tr>
<tr>
<td align="right" nowrap="nowrap"><?php echo $AppUI->_('Expiry Date (YYYY-mm-dd)');?></td>
<td width="100%" colspan="2">
<input type="text" name="domain_expiry_date" value="<?php echo dPformSafe( $row->domain_expiry_date );?>" size="20" maxlength="10" onBlur="setShort();" class="text" />
</td>
</tr>
<tr>
<td align="right" nowrap="nowrap"><?php echo $AppUI->_('Registrar');?></td>
<td width="100%" colspan="2">
<input type="text" name="domain_registrar" value="<?php echo dPformSafe( $row->domain_status );?>" size="100" maxlength="150" onBlur="setShort();" class="text" />
</td>
</tr>
<tr>
<td align="right" nowrap="nowrap"><?php echo $AppUI->_('Registration Status');?></td>
<td width="100%" colspan="2">
<input type="text" name="domain_status" value="<?php echo dPformSafe( $row->domain_status );?>" size="100" maxlength="150" onBlur="setShort();" class="text" />
</td>
</tr>
<tr>
<td align="right" nowrap="nowrap">
<?php echo $AppUI->_('Domain Notes');?>
</td>
<td width="100%" colspan="2">
<textarea name="domain_notes" cols="50" rows="10" wrap="virtual" class="textarea"><?php echo dPformSafe( @$row->domain_notes );?></textarea>
</td>
</tr>
</table>
<br />
<hr /> <!-- ..................... -->
<br />
<table cellspacing="0" cellpadding="2" border="0">
<tr>
<td align="right" nowrap="nowrap"><?php echo $AppUI->_('Hosting Package');?></td>
<td width="100%" colspan="2">
<input type="text" name="hosting_package_name" value="<?php echo dPformSafe( $row->hosting_package_name );?>" size="100" maxlength="150" onBlur="setShort();" class="text" />
</td>
</tr>
<tr>
<td align="right" nowrap="nowrap"><?php echo $AppUI->_('Expiry Date (YYYY-mm-dd)');?></td>
<td width="100%" colspan="2">
<input type="text" name="hosting_expiry_date" value="<?php echo dPformSafe( $row->hosting_expiry_date );?>" size="20" maxlength="10" onBlur="setShort();" class="text" />
</td>
</tr>
<tr>
<td align="right" nowrap="nowrap"><?php echo $AppUI->_('Registration Status');?></td>
<td width="100%" colspan="2">
<input type="text" name="hosting_status" value="<?php echo dPformSafe( $row->hosting_status );?>" size="100" maxlength="150" onBlur="setShort();" class="text" />
</td>
</tr>
<tr>
<td align="right" nowrap="nowrap">
<?php echo $AppUI->_('Hosting Notes');?>
</td>
<td width="100%" colspan="2">
<textarea name="hosting_notes" cols="50" rows="10" wrap="virtual" class="textarea"><?php echo dPformSafe( $row->hosting_notes );?></textarea>
</td>
</tr>
<tr>
<td>
<input class="button" type="button" name="cancel" value="<?php echo $AppUI->_('cancel');?>" onClick="javascript:if(confirm('Are you sure you want to cancel.')){location.href = './index.php?m=hosting';}" />
<input class="button" type="submit" name="btnFuseAction" value="<?php echo $AppUI->_('submit');?>" />
</td>
</tr>
</table>
</td>
</tr>
</form>
</table>