download edit.php
Language: PHP
LOC: 512
Project Info
Total ISP(total-isp)
Server: SourceForge
Type: cvs
...orge\t\total‑isp\total‑isp\
   abn.php
   addnew.php
   addnote.php
   addpay.php
   addsub.php
   addtime.php
   aliasadd.php
   answer.php
   approvelink.php
   ask.php
   autobill.php
   autobillpost.php
   backuplink.php
   batchtax.php
   Blocks-check.php
   Blocks-oldmail.php
   buildmenu.php
   business-check.php
   buytime.php
   cachemgr.php
   callanalysis.php
   calls.php
   callweekall.php
   ccemail.php
   changes.php
   checkmail.php
   cli.php
   clicheck.php
   config.php
   createwebdir.php
   credit.php
   creditpost.php
   cvimage.php
   dbspec.sql
   dealer.php
   dealeredit.php
   dealereditsave.php
   dealermenu.php
   dealerspecial-check.php
   dealerspecial.php
   dealersummary.php
   dig.php
   dnstest.php
   domainadd.php
   dschurn.php
   dsused.php
   edit.php
   editadd.php
   emailip.php
   expire.php
   extraadd.php
   faq.php
   firstpayments.php
   fixedip.dat
   fixedip.ph
   fixedip.php
   frames.php
   frconten.php
   frmain.php
   getcall.php
   gstinc.inc.php
   gsttest.php
   hms.inc.php
   index.php
   invoicepost.php
   invoices.php
   IPAD-check.php
   ipadmail.dat
   jump.php
   kick.php
   kickall.php
   killed.php
   lastaccess.php
   lastcall.php
   lastpasswords.php
   list.php
   listpay.php
   listpurchase-cash.php
   listpurchase-cheque.php
   listpurchase-code.php
   listpurchase-dupes.php
   listpurchase-exact.php
   listpurchase-group.php
   listpurchase-summary.php
   listpurchase-supplier.php
   ...purchase-unapproved.php
   listpurchase.php
   lm.inc.php
   loginfail.php
   mail.php
   mailadd.php
   mailusr.php
   monthpurch.php
   mysql.inc.php
   names.php
   newcustomer.php
   nextcall.php
   nosubs.php
   orphans.php
   password.php
   payimage.php
   payment.php
   payreport.php
   payview.php
   pdf-daily-sum.php
   pdfprint.inc.php
   permanent-check.php
   phpinfo.php
   phptest.php
   ping.php
   purchase-delete.php
   purchaseedit.php
   purchaseindex.php
   purchasing.php
   qchar.php
   radiususers.php
   radtest.php
   reallysure.php
   recall.php
   redir.php
   report.php
   reseller-check.php
   resellview.php
   sampledata.sql
   searchfaq.php
   searchfaqres.php
   sendmail.php
   staff.php
   subedit.php
   subeditadd.php
   submituser.php
   subnames.php
   taxpdf.php
   testbatch.php
   testpdf-day.php
   testpost.php
   testtaxpdf.php
   testuser.php
   testwho.php
   thundermail.php
   tigris.php
   time1.inc.php
   timetest.php
   top.php
   unanswered.php
   unlimited-3mth-check.php
   unlimited-check.php
   unlimited-stats.php
   unlimitedpartition.php
   uploadmailhdr.php
   user.php
   viewnotes.php
   visp.inc.php
   webadd.php
   weblinks.php
   WebSite-check.php
   weeknotes.php
   weekuser.php
   who.php
   whoip.php
   whoverify.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
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
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
<?
include "./auth.inc.php";
include "./hms.inc.php";

if (!$ID)
        $ID=$CustomerID;

$sql="SELECT *, UNIX_TIMESTAMP(ExpireDate) as uExpireDate FROM MasterAccounts WHERE CustomerID=$ID";
 if ($result=mysql_query($sql)){;
    $row=mysql_fetch_array($result);

$rsql="SELECT resellername FROM resellers WHERE resellerID='$row[Reseller]'";
$rres=mysql_query($rsql);
if ($rres)
        $reseller=mysql_fetch_row($rres);

$vsql="SELECT VISPID, VISPName FROM VISP";
$vres=mysql_query($vsql);

$ssql="SELECT AccountID, Login, AccountType FROM SubAccounts WHERE
CustomerID=$ID ORDER BY IsPrimary DESC,AccountID";
$sres=mysql_query($ssql);

print mysql_error();
#$srow=mysql_fetch_array($sres);

 if ($row[Reseller]){
       $dsql="SELECT DealerName FROM Dealer WHERE DealerID=$row[Reseller]";
             $dres=mysql_query($dsql);
             $drow=mysql_fetch_row($dres);
	     $dealername = $drow[0];
 }
}
?>
<html>
<head>
<title>Accounting</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
//<!--
td {  font-family: Arial, Helvetica, sans-serif; font-size: 10pt; font-style: normal; line-height: normal; font-weight: bold; color: #FFFFFF; text-decoration: none}
P { font-family: Arial, Helvetica, sans-serif; font-size: 10pt; font-style: normal; line-height: normal; font-weight: bold; color: #FFFFFF; text-decoration: none}
//-->
</style>
</head>

<body bgcolor="#FFFFFF" link=#FFFFFF vlink=#FFFFFF background="images/bg2.jpg">
<P>SubAccounts: 
<?
 if ($reseller){
	 while ($srow = mysql_fetch_array($sres)){
	if (!$i)
		$primaryaccttype=$srow[AccountType];
	$i++;
	print "<A HREF=\"subedit.php?ID=$srow[AccountID]\">$srow[Login]</A>, ";

} 

print " Primary is <B>$primaryaccttype</B> ";

if ($dealername)
	print "Dealer is <B>$dealername</B>";
}
?></P>
<form method="post" action="editadd.php">
<table width="69%" border="0">
  <tr>
    <td width="51%" valign="top"><img src="images/top2.gif" width="297"
height="22"><br>
<table width="297" border="0" cellspacing="0" cellpadding="4" bgcolor="#000031">
        <tr> 
          <td width="41%" height="16"><font color="#FFFFCC"><b>First Name</b></font></td>
          <td width="59%" height="16"> 
            <div align="right"> 
              <input type=text name="FirstName" value="<? echo $row[FirstName] ?>" maxlength=30>
            </div>
          </td>
        </tr>
        <tr> 
          <td width="41%" height="21"><font color="#FFFFCC"><b>Last Name</b></font></td>
          <td width="59%" height="21"> 
            <div align="right"> 
              <input type=text name="LastName" value="<? echo $row[LastName] ?>"  maxlength=40>
            </div>
          </td>
        </tr>
        <tr> 
          <td width="41%" height="19"><font color="#FFFFFF">Company</font></td>
          <td width="59%" height="19"> 
            <div align="right"> 
              <input type=text name="Company" value="<? echo $row[Company] ?>"  maxlength=40>
            </div>
          </td>
        </tr>
	
	<tr>
          <td width="41%" height="19"><font color="#FFFFFF">ABN</font></td>
          <td width="59%" height="19">
            <div align="right">
              <input type=text name="ABN" value="<? echo $row[ABN] ?>"  maxlength=40>
            </div>
          </td>
        </tr>



        <tr> 
          <td width="41%" height="21"><font color="#FFFFFF">Address</font></td>
          <td width="59%" height="21"> 
            <div align="right"> 
              <input type=text name="Address" value="<? echo $row[Address] ?>">
            </div>
          </td>
        </tr>
        <tr> 
          <td width="41%" height="18"><font color="#FFFFFF">Suburb</font></td>
          <td width="59%" height="18"> 
            <div align="right"> 
              <input type=text name="Suburb" value="<? echo $row[Suburb] ?>"  maxlength=20>
            </div>
          </td>
        </tr>
        <tr> 
          <td width="41%" height="13"><font color="#FFFFFF">State</font></td>
          <td width="59%" height="13"> 
            <div align="right"> 
              <input type=text name="State" value="<? echo $row[State] ?>"  maxlength=4>
            </div>
          </td>
        </tr>
        <tr> 
          <td width="41%" height="22"><font color="#FFFFFF">Postcode</font></td>
          <td width="59%" height="22"> 
            <div align="right"> 
              <input type=text name="Postcode" value="<? echo $row[Postcode] ?>"  maxlength=6>
            </div>
          </td>
        </tr>
        <tr> 
          <td width="41%" height="2"><font color="#FFFFCC"><b>Phone Home</b></font></td>
          <td width="59%" height="2"> 
            <div align="right"> 
              <input type=text name="PhoneHome" value="<? echo $row[PhoneHome] ?>"  maxlength=15>
            </div>
          </td>
        </tr>
        <tr> 
          <td width="41%" height="16"><font color="#FFFFFF">Phone Work</font></td>
          <td width="59%" height="16"> 
            <div align="right"> 
              <input type=text name="PhoneWork" value="<? echo $row[PhoneWork] ?>"  maxlength=15>
            </div>
          </td>
        </tr>
        <tr> 
          <td height="13" width="41%"><font color="#FFFFFF">Phone Mobile</font></td>
          <td height="13" width="59%"> 
            <div align="right"> 
              <input type=text name="PhoneMobile" value="<? echo $row[PhoneMobile] ?>"  maxlength=15>
            </div>
          </td>
        </tr>
        <tr> 
          <td height="2" width="41%"><font color="#FFFFFF">Facsimile</font></td>
          <td height="2" width="59%"> 
            <div align="right"> 
              <input type=text name="PhoneFax" value="<? echo $row[PhoneFax] ?>"  maxlength=15>
            </div>
          </td>
        </tr>
        <tr> 
          <td height="27" width="41%"><font color="#FFFFFF">Email Address</font></td>
          <td height="27" width="59%"> 
            <div align="right"> 
              <input type=text name="ContactEmail" value="<? echo $row[ContactEmail] ?>"  maxlength=40>
            </div>
          </td>
        </tr>
      </table>
      
      <table width="297" border="0" cellspacing="0" cellpadding="4" bgcolor="#000031">
        <tr> 
          <td width="51%" height="16">&nbsp;</td>
          <td width="49%" height="16">&nbsp;</td>
        </tr>
        <tr> 
          <td width="51%" height="21"><font color="#FFFFCC"><b>Credit Card No.</b></font></td>
          <td width="49%" height="21"> 
             
              <input type=text name="CreditCardNumbor" value="<? echo $row[CreditCardNumbor] ?>"  maxlength=20>
            
          </td>
        </tr>
        <tr> 
          <td width="51%" height="19"><font color="#FFFFCC"><b> Card Name</b></font></td>
          <td width="49%" height="19"> 
            <div align="right"> 
              <input type=text name="CreditCardName" value="<? echo $row[CreditCardName] ?>"  maxlength=20>
            </div>
          </td>
        </tr>
        <tr> 
          <td width="51%" height="19"><font color="#FFFFFF">Credit Card Expiry</font></td>
          <td width="49%" height="19"> 
            <div align="right"> 
              <input type=text name="CreditCardExp" value="<? echo $row[CreditCardExp] ?>"  maxlength=10>
            </div>
          </td>
        </tr>
        <tr> 
          <td width="51%" height="18"><font color="#FFFFFF">Autobill</font></td>
          <td width="49%" height="18"> 
            <div align="right"> 
              <select name="AutoBill">
                <?
$absql="SELECT PlanID, PlanName FROM PlanTypes WHERE AccountType='$primaryaccttype' OR PlanID='$row[AutoBill]'";
$abres=mysql_query($absql);
print "<option value=\"00\"";
if (!$row[AutoBill])
	print " selected";
print ">(None)</option>\n";
while ($abrow=mysql_fetch_array($abres)){
	$pn = $abrow[PlanName];
	$pn = ereg_replace("Digital","",$pn);
	print "<option value=\"$abrow[PlanID]\"";
	if ($row[AutoBill]==$abrow[PlanID])
		print " selected";
	print ">".substr($pn,0,25)."</option>\n";

}
?> 
              </select>
            </div>
          </td>
        </tr>
        <tr> 
          <td width="51%" height="13"><font color="#FFFFFF">Dealer</font></td>
          <td width="49%" height="13"> 
            <div align="right">
		<? if ($dealername){
			print $dealername;
			
			if ($row[RecurDealer]){
			 if ($row[Reseller] == $row[RecurDealer])
				print " (Recurring)";
			 else
				print " (Dealer <A HREF=\"dealeredit.php?Dealer=$row[RecurDealer]\">$row[RecurDealer]</A> recur)";
			}
		}else{
			print "&nbsp;";
		} ?>		 
            </div>
          </td>
        </tr>
        <tr> 
          <td width="51%" height="22"><font color="#FFFFFF">Active</font></td>
          <td width="49%" height="22"> 
            <div align="right"> 
	<SELECT Name=Active><?

print "<option value=0";
if (!$row[Active])
        print " selected";
print ">False</option>\n";

print "<option value=1";
if ($row[Active])
        print " selected";
print ">True</option></SELECT>\n";
?>

            </div>
          </td>
        </tr>

       <tr>
          <td width="51%" height="22"><font color="#FFFFFF">Supplier</font></td>
          <td width="49%" height="22">
            <div align="right">
        <SELECT Name=Supplier><?

print "<option value=\"00\"";
if (!$row[Supplier])
        print " selected";
print ">False</option>\n";

print "<option value=1";
if ($row[Supplier])
        print " selected";
print ">True</option></SELECT>\n";
?>

            </div>
          </td>
        </tr>



        <tr>
          <td width="51%" height="2">&nbsp;</td>
          <td width="49%" height="2"> 
            <div align="right">
              <input type="submit" value=" SAVE RECORD " name="submit2">
            </div>
          </td>
        </tr>
      </table>
      <img src="images/top3.gif" width="297" height="22"> </td>
    <td width="49%" valign="top">
      <img src="images/top2.gif" width="297" height="22"><br>
      <table width="297" border="0" cellspacing="0" cellpadding="04" bgcolor="#000031">
        <tr> 
          <td width="140" height="32"><font color="#FFFFCC"><b>Time Remaining</b></font></td>
          <td width="144" height="32"><? echo hhms($row[TimeRemaining]*60); ?></td>
        </tr>

	<tr>
          <td width="140" height="32"><font color="#FFFFCC"><b><? if ((($row[uExpireDate]-86400) > mktime()) || !$row[uExpireDate]){ ?>
                <font color="#FFFFCC">
                <? }else{ ?>
                <font color="#FF0000">
                <? } ?>
	Expire Date</b></font></td>
          <td width="144" height="32"><? 
	if ($security<90)
		print $row[ExpireDate]; 
	else
		print "<INPUT TYPE=TEXT NAME=ExpireDate VALUE=\"$row[ExpireDate]\">";
	?></td>
        </tr>

	

        <tr> 
          <td width="140">
<? if (($row[TimeRemaining] <
$row[LowCreditPoint])&&$primaryaccttype=='Blocks')
	print "<font color=\"#FF0000\">";
else 
	print "<font color=\"#FFFFFF\">";
?>Mins Remaining</font></td>
          <td width="144"> 
            
		<? if ($security > 90) { ?>
              <input type=text name="TimeRemaining" value="<? echo $row[TimeRemaining] ?>"
maxlength=9>
		<? }else{ 
			print $row[TimeRemaining];
	 	} ?>
          </td>
        </tr>
        <tr> 
          <td width="140"><font color="#FFFFFF">Megs Remaining</font></td>
          <td width="144"> 
            <div align="right"> 
              <input type=text name="MegsRemaining" value="<? echo $row[MegsRemaining] ?>"  maxlength=11>
            </div>
          </td>
        </tr>
        <tr> 
          <td width="140" height="20"><font color="#FFFFFF">Low Credit Point</font></td>
          <td width="144" height="20"> 
            <div align="right"> 
              <input type=text name="LowCreditPoint" value="<? echo $row[LowCreditPoint] ?>"  maxlength=9>
            </div>
          </td>
        </tr>
        <tr> 
          <td width="140" height="20"><font color="#FFFFFF">Expire Point</font></td>
          <td width="144" height="20"> 
            <div align="right"> 
              <input type=text name="ExpirePoint" value="<? echo $row[ExpirePoint] ?>"  maxlength=9>
            </div>
          </td>
        </tr>

	<tr>
	<td height=20><font color="#FFFFFF">Kbyte Quota</font></td>
	<td><input type=text name="KByteQuota" value="<? echo
$row[KByteQuota] ?>"></td>
	</tr>

	 <tr>
          <td width="140" height="20"><font color="#FFFFFF">Excess Charge</font></td>
          <td width="144" height="20">
            <div align="right">
              <input type=text name="ExcessCharge" value="<? echo $row[ExcessCharge] ?>"  maxlength=9>
            </div>
          </td>
        </tr>

	<tr>
	 <td><font color="#FFFFFF">Over Quota Action</font></td>
	 <td width="144" height="20"><SELECT NAME="QuotaAction"><?
	  print "<OPTION VALUE=\"00\"";
	  if ($row[QuotaAction]==0)
		print " selected";
	  print ">Charge Excess</option>\n";
	  
	  print "<OPTION VALUE=1";
          if ($row[QuotaAction]==1)
                print " selected";
          print ">Deny Access</option>\n";	
	
	?></SELECT></TD>
	</tr>
	 <TR><TD colspan=2>&nbsp;</TD></TR>


        <tr> 
          <td width="140" height="20"><font color="#FFFFFF">Computer</font></td>
          <td width="144" height="20"> 
            <div align="right"> 
              <input type=text name="ComputerType" value="<? echo $row[ComputerType] ?>"  maxlength=20>
            </div>
          </td>
        </tr>
        <tr> 
          <td width="140"><font color="#FFFFFF">Operating System</font></td>
          <td width="144"> 
            <div align="right"> 
              <input type=text name="OperatingSystem" value="<? echo $row[OperatingSystem] ?>"  maxlength=20>
            </div>
          </td>
        </tr>
        <tr> 
          <td width="140"><font color="#FFFFFF">Modem Type</font></td>
          <td width="144"> 
            <div align="right"> 
              <input type=text name="ModemType" value="<? echo $row[ModemType] ?>"  maxlength=20>
            </div>
          </td>
        </tr>
<?
if ($row[Browser]){
?>
<tr>
          <td width="140"><font color="#FFFFFF">Browser</font></td>
          <td width="144">
            <div align="right">
		<? echo $row[Browser] ?>
            </div>
          </td>
        </tr>

<?
}
?>
	<TR><TD colspan=2>&nbsp;</TD></TR>
        <tr> 
          <td width="140">Next Call</td>
          <td width="144"> 
            <div align="right"> 
		 <input type=text name="NextCall" value="<? echo $row[NextCall] ?>"  maxlength=20>
</div>
          </td>
        </tr>
	<tr>
          <td width="140">Call Reason</td>
          <td width="144">
            <div align="right">
                 <input type=text name="NextCallReason" value="<? echo $row[NextCallReason] ?>"  maxlength=20></div>
          </td>
        </tr>


        <tr> 
          <td width="140"><font color="#FFFFFF">Last Used</font></td>
          <td width="144"> 
            <div align="right"> 
              <input type=text name="LastUse" value="<? echo $row[LastUse] ?>"  maxlength=19>
            </div>
          </td>
        </tr>
        <tr> 
          <td width="140"><font color="#FFFFFF">Create Date</font></td>
          <td width="144"> 
            <div align="right"> 
             <? if ($row[CreateDate])
			echo $row[CreateDate];
		else
			echo '&nbsp;';
	 ?>
            </div>
          </td>
        </tr>
        <tr> 
          <td width="140" valign="top"><font color="#FFFFFF">Last Warning</font></td>
          <td width="144"> 
            <div align="right"> 
              <input type=text name="LastWarning" value="<? echo $row[LastWarning] ?>"  maxlength=10>
            </div>
          </td>
        </tr>
        <tr> 
          <td width="140" valign="top"><font color="#FFFFFF">Visp</font></td>
          <td width="144"> 
            <div align="right"> 
              <select name=VISP>
                <option value="0"></option>
                <?
while ($vrow=mysql_fetch_row($vres)){
	echo "<option value=$vrow[0]";
	if ($row[VISP]==$vrow[0])
		echo " selected";
	echo ">$vrow[1]</option>\n";
}
?> 
              </select>
            </div>
          </td>
        </tr>
        <tr> 
          <td width="140" valign="top" height="7"><font color="#FFFFFF">Web Site</font></td>
          <td width="144" height="7"> 
            <div align="right"> 
              <input type=text name="WebSite" value="<? echo $row[WebSite] ?>"  maxlength=100>
            </div>
          </td>
        </tr>
        <tr> 
          <td width="140" valign="top"><font color="#FFFFFF">Last Modified</font></td>
          <td width="144"> 
            <div align="right"> 
              <input type=text name="Input" value="<? echo $row[LastModifyDate] ?>"  maxlength=40>
            </div>
          </td>
        </tr>
        <tr> 
          <td width="140" valign="top"><font color="#FFFFFF">Last Modified By</font></td>
          <td width="144"> 
            <div align="right"> 
              <input type=text name="LastModifyUser" value="<? echo $row[LastModifyUser] ?>"  maxlength=30>
            </div>
          </td>
        </tr>
        <tr> 
          <td width="140" valign="top"><font color="#FFFFFF">Start Date</font></td>
          <td width="144"> 
            <div align="right"> 
              <input type=text name="StartDate" value="<? echo $row[StartDate] ?>">
            </div>
          </td>
        </tr>
      </table>
      <div align="left"><img src="images/top3.gif" width="297"
height="22"><br>
      </div>
      <div align="right"></div>
      <div align="right"></div>
      <div align="right"></div>
      
    </td>
  </tr>
</table>
<p>&nbsp;</p>
<p>&nbsp;</p>
</form>
</body>
</html>

About Koders | Resources | Downloads | Support | Black Duck | Submit Project | Terms of Service | DMCA | Privacy Policy | Site Map| Contact Us