forked from resnostyle/mediafrontpage
/
settings.php
836 lines (833 loc) · 49.8 KB
/
settings.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
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
<?php
require 'lib/class.settings.php';require 'lib/class.github.php';
$config = new ConfigMagik('config.ini', true, true);
if(!empty($_GET) && strpos($_SERVER['HTTP_REFERER'],'settings')){
if(!is_writeable('config.ini')){
echo 'Could not write to config.ini';
return false;
}
//if there is no section parameter, we will not do anything.
if(!isset($_GET['section'])){
echo false; return false;
} else {
$section_name = $_GET['section'];
unset($_GET['section']); //Unset section so that we can use the GET array to manipulate the other parameters in a foreach loop.
if (!empty($_GET)){
foreach ($_GET as $var => $value){
//Here we go through all $_GET variables and add the values one by one.
$var = urlencode($var);
try{
$config->set($var, $value, $section_name); //Setting variable '. $var.' to '.$value.' on section '.$section_name;
} catch(Exception $e) {
echo 'Could not set variable '.$var.'<br>';
echo $e;
return false;
}
}
}
try{
$section = $config->get($section_name); //Get the entire section so that we can check the variables in it.
foreach ($section as $title=>$value){
//Here we go through all variables in the section and delete the ones that are in there but not in the $_GET variables
//Used mostly for deleting things.
if(!isset($_GET[$title]) && ($config->get($title, $section_name) !== NULL)){
$title = urlencode($title);
try{
$config = new ConfigMagik('config.ini', true, true);
$config->removeKey($title, $section_name); //$title removed;
$config->save();
} catch(Exception $e){
echo 'Unable to remove variable '.$title.' on section'.$section_name.'<br>';
echo $e;
}
}
}
} catch(Exception $e){
echo $e;
}
echo true;
return true;
}
} else {
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<!--
@author: Gustavo Hoirisch
-->
<html>
<head>
<title>Settings</title>
<link href="css/front.css" rel="stylesheet" type="text/css">
<link href="css/settings.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
<script type="text/javascript" src="js/fisheye-iutil.min.js"></script>
<script type="text/javascript" src="js/settings.js"></script>
<link rel="stylesheet" type="text/css" href="css/widget.css">
<link rel="stylesheet" type="text/css" href="css/static_widget.css">
<script src="js/jquery.scrollTo-1.4.2-min.js" type="text/javascript"></script>
<script src="js/jquery.localscroll-1.2.7-min.js" type="text/javascript"></script>
<script src="js/jquery.serialScroll-1.2.2-min.js" type="text/javascript"></script>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.js"></script>
<link rel="stylesheet" type="text/css" href="css/jquery.pnotify.default.css">
<link rel="stylesheet" type="text/css" href="css/UI/jquery-ui-1.8.14.custom.css">
<script src="js/jquery.pnotify.js" type="text/javascript"></script>
<script type="text/javascript" src="js/jquery.tipsy.js"></script>
<link rel="stylesheet" href="css/tipsy.css" type="text/css" />
<script type='text/javascript'>
$(function() {
$('input').tipsy({gravity: 'w', fade: true});
$('img').tipsy({fade: true, gravity: 'n'});
});
</script>
</head>
<body style="overflow: hidden;">
<center>
<div style="width:90%; height:95%;" class="widget">
<div class="widget-head">
<h3>MediaFrontPage Settings</h3>
</div>
<br />
<div id="slider">
<ul class="navigation">
<li><a href="#ABOUT">About</a></li>
<li><a href="#GLOBAL">General</a></li>
<li><a href="#PROGRAMS">Programs</a></li>
<li><a href="#SEARCH">Search Widget</a></li>
<li><a href="#TRAKT">Trakt.tv</a></li>
<li><a href="#NAVBAR">Nav Bar</a></li>
<li><a href="#SUBNAV">Sub Nav</a></li>
<li><a href="#HDD">Hard Drives</a></li>
<li><a href="#MESSAGE">Message Widget</a></li>
<li><a href="#SECURITY">Security</a></li>
<li><a href="#MODS">CSS Mods</a></li>
<li><a href="#RSS">RSS Feeds</a></li>
<li><a href="#CONTROL">Control Widget</a></li>
</ul>
<!-- element with overflow applied -->
<div class="scroll">
<!-- the element that will be scrolled during the effect -->
<div class="scrollContainer">
<div id="ABOUT" class="panel">
<table cellpadding="5px">
<tr>
<img src="media/mfp.png" />
</tr>
<tr>
<td colspan="2">
<p align="justify" style="width: 500px;padding-bottom: 20px;">
MediaFrontPage is a HTPC Web Program Organiser. Your HTPC utilises a number of different programs to do certain tasks, what MediaFrontPage does is creates it user specific web page that will be your nerve centre for everything you will need. It was originally created by <a href="http://forum.xbmc.org/member.php?u=24286">Nick8888</a> and has had a fair share of contributors. If you'd like to contribute please consider making a donation or come and join us developing this great tool.
</p>
<form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_blank">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="hosted_button_id" value="D2R8MBBL7EFRY">
<input type="image" src="https://www.paypalobjects.com/en_AU/i/btn/btn_donate_SM.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online.">
<img alt="" border="0" src="https://www.paypalobjects.com/en_AU/i/scr/pixel.gif" width="1" height="1">
</form>
</td>
</tr>
<tr align="left">
<td>Homepage</td><td><a href="http://mediafrontpage.net/">http://mediafrontpage.net/</a></td>
</tr>
<tr align="left">
<td>Forum</td><td><a href="http://forum.xbmc.org/showthread.php?t=83304">http://forum.xbmc.org/showthread.php?t=83304</a></td>
</tr>
<tr align="left">
<td>Source</td><td><a href="https://github.com/MediaFrontPage/mediafrontpage">https://github.com/MediaFrontPage/mediafrontpage</a></td>
</tr>
<tr align="left">
<td>Bug Tracker</td><td><a href="http://mediafrontpage.lighthouseapp.com">http://mediafrontpage.lighthouseapp.com</a></td>
</tr>
<tr align="left">
<td>Last Updated</td>
<td>
<?php
$github = new GitHub('gugahoi','mediafrontpage');
$date = $github->getInfo();
echo $date['pushed_at'];
?>
</td>
</tr>
<tr align="left">
<td>
<?php
$commit = $github->getCommits();
$commitNo = $commit['0']['sha'];
$currentVersion = $config->get('version','ADVANCED');
echo "Version </td><td><a href='https://github.com/gugahoi/mediafrontpage/commit/".$currentVersion."' target='_blank'>".$currentVersion.'</a>';
if($commitNo != $currentVersion){
echo "\t<a href='#' onclick='updateVersion();' title='".$commitNo." - Description: ".$commit['0']['commit']['message']."'>***UPDATE Available***</a>";
}
?>
</td>
</tr>
</table>
</div>
<div id="GLOBAL" class="panel"><br><br>
<h3>Global Settings</h3>
<table>
<tr>
<td colspan="2"><p align="justify" style="width: 500px;">Use Global Settings if all your programs are installed to one computer and/or if you use the same Username and Password throughout. Changing a setting for that particular program overrides this page.</p></td>
</tr>
<tr>
<td align="right"><p>Global URL:</p></td>
<td align="left"><p><input type="checkbox" title="Tick to Enable" name="ENABLED" <?php echo ($config->get('ENABLED','GLOBAL')=="true")?'CHECKED':'';?>></td>
</tr>
<tr>
<td align="right"><p>Global IP:</p></td>
<td align="left"><p><input name="URL" size="20" title="Insert IP Address or Network Name" value="<?php echo $config->get('URL','GLOBAL')?>"></td>
</tr>
<tr>
<td align="right"><p>Global Authentication:</p></td>
<td align="left"><p><input type="checkbox" title="Tick to Enable" name="AUTHENTICATION" <?php echo ($config->get('AUTHENTICATION','GLOBAL') == "true")?'CHECKED':'';?>></p></td>
</tr>
<tr>
<td align="right"><p>Global Username:</p></td>
<td align="left"><input name="USERNAME" title="Insert your Global Username" size="20" value="<?php echo $config->get('USERNAME','GLOBAL')?>"></td>
</tr>
<tr>
<td align="right"><p>Global Password:</p></td>
<td align="left"><input type="password" title="Insert your Global Password" name="PASSWORD" size="20" value="<?php echo $config->get('PASSWORD','GLOBAL')?>"></td>
</tr>
</table>
<input type="button" title="Save these Settings" value="Save" class="ui-button ui-widget ui-state-default ui-corner-all" onClick="updateSettings('GLOBAL');" />
</div>
<div id="PROGRAMS" class="panel">
<table cellspacing="30px">
<tr>
<td><a href="#XBMC" title="XBMC"><img src="media/Programs/XBMC.png" style="opacity:0.4;filter:alpha(opacity=40)" onMouseOver="this.style.opacity=1;this.filters.alpha.opacity=100" onMouseOut="this.style.opacity=0.4;this.filters.alpha.opacity=40" /></a></td>
<td><a href="#SABNZBD" title="SabNZBd+"><img src="media/Programs/SabNZBd.png" style="opacity:0.4;filter:alpha(opacity=40)" onMouseOver="this.style.opacity=1;this.filters.alpha.opacity=100" onMouseOut="this.style.opacity=0.4;this.filters.alpha.opacity=40" /></a></td>
<td><a href="#SUBSONIC" title="Subsonic"><img src="media/Programs/SubSonic.png" style="opacity:0.4;filter:alpha(opacity=40)" onMouseOver="this.style.opacity=1;this.filters.alpha.opacity=100" onMouseOut="this.style.opacity=0.4;this.filters.alpha.opacity=40" /></a></td>
</tr>
<tr>
<td><a href="#SICKBEARD" title="Sick Beard"><img src="media/Programs/SickBeard.png" style="opacity:0.4;filter:alpha(opacity=40)" onMouseOver="this.style.opacity=1;this.filters.alpha.opacity=100" onMouseOut="this.style.opacity=0.4;this.filters.alpha.opacity=40" /></a></td>
<td><a href="#COUCHPOTATO" title="Couch Potato"><img src="media/Programs/CouchPotato.png" style="opacity:0.4;filter:alpha(opacity=40)" onMouseOver="this.style.opacity=1;this.filters.alpha.opacity=100" onMouseOut="this.style.opacity=0.4;this.filters.alpha.opacity=40" /></a></td>
<td><a href="#HEADPHONES" title="Headphones"><img src="media/Programs/HeadPhones.png" style="opacity:0.4;filter:alpha(opacity=40)" onMouseOver="this.style.opacity=1;this.filters.alpha.opacity=100" onMouseOut="this.style.opacity=0.4;this.filters.alpha.opacity=40" /></a></td>
</tr>
<tr>
<td><a href="#TRANSMISSION" title="Transmission"><img src="media/Programs/Transmission.png" style="opacity:0.4;filter:alpha(opacity=40)" onMouseOver="this.style.opacity=1;this.filters.alpha.opacity=100" onMouseOut="this.style.opacity=0.4;this.filters.alpha.opacity=40" /></a></td>
<td><a href="#UTORRENT" title="uTorrent"><img src="media/Programs/uTorrent.png" style="opacity:0.4;filter:alpha(opacity=40)" onMouseOver="this.style.opacity=1;this.filters.alpha.opacity=100" onMouseOut="this.style.opacity=0.4;this.filters.alpha.opacity=40" /></a></td>
<td><a href="#JDOWNLOADER" title="jDownloader"><img src="media/Programs/JDownloader.png" style="opacity:0.4;filter:alpha(opacity=40)" onMouseOver="this.style.opacity=1;this.filters.alpha.opacity=100" onMouseOut="this.style.opacity=0.4;this.filters.alpha.opacity=40" /></a></td>
</tr>
<tr>
<td align="center" colspan="9" ><p align="justify" style="width: 500px;">Here you can specify a Username / Password / IP Address / Ports for each program individually. These settings <i>will</i> overide the Global Setting.</p></td>
</tr>
<tr><td colspan="3"><input type="button" class="ui-button ui-widget ui-state-default ui-corner-all" value="REVERSE PROXIES" onclick="window.location.href='#WEBROOT'" /></td></tr>
</table>
</div>
<div id="WEBROOT" class="panel">
<table>
<tr>
<td colspan="2"><p align="justify" style="width: 500px;">Reverse Proxy changes your programs locations from http://serverip:port to http://serverip/programs. These also need to be edited within some of the programs you use. Further information on this is available from <a href="http://mediafrontpage.lighthouseapp.com/projects/76089/apache-configuration-hints" target="_blank">MediaFrontPage's Development Site</a>.</p></td>
</tr>
<tr>
<td align="right"><p>Reverse Proxy:</p></td>
<td align="left"><p><input type="checkbox" title="Tick To Enable" name="ENABLED" <?php echo ($config->get('ENABLED','WEBROOT')=="true")?'CHECKED':'';?> /></p></td>
</tr>
<tr>
<td align="right"><p>XBMC:</p></td>
<td align="left"><input name="XBMC" size="20" title="XBMC's IP Address" value="<?php echo $config->get('XBMC','WEBROOT')?>" /></td>
</tr>
<tr>
<td align="right"><p>Sickbeard:</p></td>
<td align="left"><input name="SICKBEARD" size="20" title="Sickbeard's IP Address" value="<?php echo $config->get('SICKBEARD','WEBROOT')?>" /></td>
</tr>
<tr>
<td align="right"><p>Couch Potato:</p></td>
<td align="left"><input name="COUCHPOTATO" size="20" title="CouchPotato's IP Address" value="<?php echo $config->get('COUCHPOTATO','WEBROOT')?>" /></td>
</tr>
<tr>
<td align="right"><p>SabNZBd+:</p></td>
<td align="left"><input name="SABNZBD" size="20" title="SabNZBd+'s IP Address" value="<?php echo $config->get('SABNZBD','WEBROOT')?>" /></td>
</tr>
<tr>
<td align="right"><p>jDownloader:</p></td>
<td align="left"><input name="JDOWNLOADER" size="20" title="jDownloaders's IP Address" value="<?php echo $config->get('JDOWNLOADER','WEBROOT')?>" /></td>
</tr>
<tr>
<td align="right"><p>Transmission:</p></td>
<td align="left"><input name="TRANSMISSION" size="20" title="Transmission's IP Address" value="<?php echo $config->get('TRANSMISSION','WEBROOT')?>" /></td>
</tr>
<tr>
<td align="right"><p>uTorrent:</p></td>
<td align="left"><input name="UTORRENT" size="20" title="uTorrent's IP Address" value="<?php echo $config->get('UTORRENT','WEBROOT')?>" /></td>
</tr>
<tr>
<td align="right"><p>Headphones:</p></td>
<td align="left"><input name="HEADPHONES" size="20" title="HeadPhones's IP Address" value="<?php echo $config->get('HEADPHONES','WEBROOT')?>" /></td>
</tr>
<tr>
<td align="right"><p>SubSonic:</p></td>
<td align="left"><input name="SUBSONIC" size="20" title="SubSonic's IP Address" value="<?php echo $config->get('SUBSONIC','WEBROOT')?>" /></td>
</tr>
</table>
<input type="button" class="ui-button ui-widget ui-state-default ui-corner-all" value="Back" onClick="history.go(-1)">
<input type="button" class="ui-button ui-widget ui-state-default ui-corner-all" value="Save" onclick="updateSettings('WEBROOT');" />
</div>
<div id="XBMC" class="panel">
<br />
<br />
<a href="http://www.xbmc.org/" title="Go to XBMC's home page"><h3>XBMC</h3></a>
<table>
<tr>
<td colspan="2">
<p align="justify">To connect to XBMC, you need to enable these settings under Network Settings in XBMC.</p>
<p align="justify" style="padding-left:20px;">
– Allow control of XBMC via HTTP<br />
– Allow programs on this system to control XBMC<br />
– Allow programs on other systems to control XBMC.
</p>
</td>
</tr>
<tr>
<td align="right"><p>XBMC IP:</p></td>
<td align="left"><input name="IP" title="Insert your XBMC IP Address" size="20" value="<?php echo $config->get('IP','XBMC')?>" /></td>
</tr>
<tr>
<td align="right"><p>XBMC Port:</p></td>
<td align="left"><input name="PORT" title="Insert your XBMC Port" size="4" value="<?php echo $config->get('PORT','XBMC')?>" /></td>
</tr>
<tr>
<td align="right"><p>XBMC Username:</p></td>
<td align="left"><input name="USERNAME" title="Insert your XBMC Username" size="20" value="<?php echo $config->get('USERNAME','XBMC')?>" /></td>
</tr>
<tr>
<td align="right"><p>XBMC Password:</p></td>
<td align="left"><input type="password" title="Insert your XBMC Password" name="PASSWORD" size="20" value="<?php echo $config->get('PASSWORD','XBMC')?>" /></td>
</tr>
</table>
<input type="button" class="ui-button ui-widget ui-state-default ui-corner-all" value="Back" onClick="history.go(-1)">
<input type="button" class="ui-button ui-widget ui-state-default ui-corner-all" value="Save" onclick="updateSettings('XBMC');" />
</div>
<div id="SICKBEARD" class="panel">
<br />
<br />
<a href="http://www.sickbeard.com/" title="Go to SickBeard's home page"><h3>Sickbeard</h3></a>
<table>
<tr>
<td colspan="2"><p>Enter the details where MediaFrontPage will find SickBeard.</p></td>
</tr>
<tr>
<td align="right"><p>SickBeard IP:</p></td>
<td align="left"><input name="IP" title="Insert your SickBeard IP Address" size="20" value="<?php echo $config->get('IP','SICKBEARD')?>" /></td>
</tr>
<tr>
<td align="right"><p>SickBeard Port:</p></td>
<td align="left"><input name="PORT" title="Insert your SickBeard Port" size="4" value="<?php echo $config->get('PORT','SICKBEARD')?>" /></td>
</tr>
<tr>
<td align="right"><p>SickBeard Username:</p></td>
<td align="left"><input name="USERNAME" title="Insert your SickBeard Username" size="20" value="<?php echo $config->get('USERNAME','SICKBEARD')?>" /></td>
</tr>
<tr>
<td align="right"><p>SickBeard Password:</p></td>
<td align="left"><input name="PASSWORD" title="Insert your SickBeard Password" size="20" type="password" value="<?php echo $config->get('PASSWORD','SICKBEARD')?>" /></td>
</tr>
</table>
<input type="button" class="ui-button ui-widget ui-state-default ui-corner-all" value="Back" onClick="history.go(-1)">
<input type="button" class="ui-button ui-widget ui-state-default ui-corner-all" value="Save" onclick="updateSettings('SICKBEARD');" />
</div>
<div id="COUCHPOTATO" class="panel">
<br />
<br />
<a href="http://www.couchpotatoapp.com" target="_blank" title="Visit CouchPotato"><h3>Couch Potato</h3></a>
<table>
<tr>
<td colspan="2"><p>Enter the details where MediaFrontPage will find CouchPotato.</p></td>
</tr>
<tr>
<td align="right"><p>Couch Potato IP:</p></td>
<td align="left"><input name="IP" title="Insert your CouchPotato IP Address" size="20" value="<?php echo $config->get('IP','COUCHPOTATO')?>" /></td>
</tr>
<tr>
<td align="right"><p>Couch Potato Port:</p></td>
<td align="left"><input name="PORT" title="Insert your CouchPotato Port" size="4" value="<?php echo $config->get('PORT','COUCHPOTATO')?>" /></td>
</tr>
<tr>
<td align="right"><p>Couch Potato Username:</p></td>
<td align="left"><input name="USERNAME" title="Insert your CouchPotato Username" size="20" value="<?php echo $config->get('USERNAME','COUCHPOTATO')?>" /></td>
</tr>
<tr>
<td align="right"><p>Couch Potato Password:</p></td>
<td align="left"><input name="PASSWORD" title="Insert your CouchPotato Password" size="20" type="password" value="<?php echo $config->get('PASSWORD','COUCHPOTATO')?>" /></td>
</tr>
</table>
<input type="button" class="ui-button ui-widget ui-state-default ui-corner-all" value="Back" onClick="history.go(-1)">
<input type="button" class="ui-button ui-widget ui-state-default ui-corner-all" value="Save" onclick="updateSettings('COUCHPOTATO');" />
</div>
<div id="SABNZBD" class="panel">
<br />
<br />
<a href="http://sabnzbd.org" title="Visit SabNZBd+" target="_blank"><h3>Sabnzbd+</h3></a>
<table>
<tr>
<td colspan="2"><p>Enter the details where MediaFrontPage will find SabNZBd+.</p></td>
</tr>
<tr>
<td align="right"><p>SabNZBd+ IP:</p></td>
<td align="left"><input name="IP" title="Insert your SabNZBd+ IP Address" size="20" value="<?php echo $config->get('IP','SABNZBD')?>" /></td>
</tr>
<tr>
<td align="right"><p>SabNZBd+ Port:</p></td>
<td align="left"><input name="PORT" title="Insert your SabNZBd+ Port" size="4" value="<?php echo $config->get('PORT','SABNZBD')?>" /></td>
</tr>
<tr>
<td align="right"><p>SabNZBd+ Username:</p></td>
<td align="left"><input name="USERNAME" title="Insert your SabNZBd+ Username" size="20" value="<?php echo $config->get('USERNAME','SABNZBD')?>" /></td>
</tr>
<tr>
<td align="right"><p>SabNZBd+ Password:</p></td>
<td align="left"><input name="PASSWORD" title="Insert your SabNZBd+ Password" size="20" type="password" value="<?php echo $config->get('PASSWORD','SABNZBD')?>" /></td>
</tr>
<tr>
<td align="right"><p>SabNZBd+ API:</p></td>
<td align="left"><input name="API" title="Insert your SabNZBd+ API" type="password" size="40" value="<?php echo $config->get('API','SABNZBD')?>" /></td>
</tr>
</table>
<input type="button" class="ui-button ui-widget ui-state-default ui-corner-all" value="Back" onClick="history.go(-1)">
<input type="button" class="ui-button ui-widget ui-state-default ui-corner-all" value="Save" onclick="updateSettings('SABNZBD');" />
</div>
<div id="TRANSMISSION" class="panel">
<br />
<br />
<a href="http://www.transmissionbt.com" target="_blank" title="Visit Transmission"><h3>Transmission</h3></a>
<table>
<tr>
<td colspan="2"><p>Enter the details where MediaFrontPage will find Transmission.</p></td>
</tr>
<tr>
<td align="right"><p>Transmission IP:</p></td>
<td align="left"><input name="IP" title="Insert your Transmission IP Address" size="20" value="<?php echo $config->get('IP','TRANSMISSION')?>" /></td>
</tr>
<tr>
<td align="right"><p>Transmission Port:</p></td>
<td align="left"><input name="PORT" title="Insert your Transmission Port" size="4" value="<?php echo $config->get('PORT','TRANSMISSION')?>" /></td>
</tr>
<tr>
<td align="right"><p>Transmission Username:</p></td>
<td align="left"><input name="USERNAME" title="Insert your Transmission Username" size="20" value="<?php echo $config->get('USERNAME','TRANSMISSION')?>" /></td>
</tr>
<tr>
<td align="right"><p>Transmission Password:</p></td>
<td align="left"><input name="PASSWORD" title="Insert your Transmission Password" size="20" type="password" value="<?php echo $config->get('PASSWORD','TRANSMISSION')?>" /></td>
</tr>
</table>
<input type="button" class="ui-button ui-widget ui-state-default ui-corner-all" value="Back" onClick="history.go(-1)">
<input type="button" class="ui-button ui-widget ui-state-default ui-corner-all" value="Save" onclick="updateSettings('TRANSMISSION');" />
</div>
<div id="UTORRENT" class="panel">
<br />
<br />
<a href="http://www.utorrent.com" target="_blank" title="Visit uTorrent"><h3>uTorrent</h3></a>
<table>
<tr>
<td colspan="2"><p>Enter the details where MediaFrontPage will find uTorrent.</p></td>
</tr>
<tr>
<td align="right"><p>uTorrent IP:</p></td>
<td align="left"><input name="IP" title="Insert your uTorrent IP Address" size="20" value="<?php echo $config->get('IP','UTORRENT')?>" /></td>
</tr>
<tr>
<td align="right"><p>uTorrent Port:</p></td>
<td align="left"><input name="PORT" title="Insert your uTorrent Port" size="4" value="<?php echo $config->get('PORT','UTORRENT')?>" /></td>
</tr>
<tr>
<td align="right"><p>uTorrent Username:</p></td>
<td align="left"><input name="USERNAME" title="Insert your uTorrent Username" size="20" value="<?php echo $config->get('USERNAME','UTORRENT')?>" /></td>
</tr>
<tr>
<td align="right"><p>uTorrent Password:</p></td>
<td align="left"><input name="PASSWORD" title="Insert your uTorrent Password" size="20" type="password" value="<?php echo $config->get('PASSWORD','UTORRENT')?>" /></td>
</tr>
</table>
<input type="button" class="ui-button ui-widget ui-state-default ui-corner-all" value="Back" onClick="history.go(-1)">
<input type="button" class="ui-button ui-widget ui-state-default ui-corner-all" value="Save" onclick="updateSettings('UTORRENT');" />
</div>
<div id="JDOWNLOADER" class="panel">
<br />
<br />
<a href="http://jdownloader.org/home/index?s=lng_en" target="_blank" title="Visit jDownloader"><h3>jDownloader</h3></a>
<table>
<tr>
<td colspan="2"><p>Enter the details where MediaFrontPage will find jDownloader.</p></td>
</tr>
<tr>
<td align="right"><p>jDownloader IP:</p></td>
<td align="left"><input name="IP" title="Insert your jDownloader IP Address" size="20" value="<?php echo $config->get('IP','JDOWNLOADER')?>" /></td>
</tr>
<tr>
<td align="right"><p>jDownloader Web Port:</p></td>
<td align="left"><input name="WEB_PORT" title="Insert your jDownloader Web Port" size="4" value="<?php echo $config->get('WEB_PORT','JDOWNLOADER')?>" /></td>
</tr>
<tr>
<td align="right"><p>jDownloader Remote Port:</p></td>
<td align="left"><input name="REMOTE_PORT" title="Insert your jDownloader Remote Port" size="4" value="<?php echo $config->get('REMOTE_PORT','JDOWNLOADER')?>" /></td>
</tr>
<tr>
<td align="right"><p>jDownloader Username:</p></td>
<td align="left"><input name="USERNAME" title="Insert your jDownloader Username" size="20" value="<?php echo $config->get('USERNAME','JDOWNLOADER')?>" /></td>
</tr>
<tr>
<td align="right"><p>jDownloader Password:</p></td>
<td align="left"><input name="PASSWORD" title="Insert your jDownloader Password" size="20" type="password" value="<?php echo $config->get('PASSWORD','JDOWNLOADER')?>" /></td>
</tr>
</table>
<input type="button" class="ui-button ui-widget ui-state-default ui-corner-all" value="Back" onClick="history.go(-1)">
<input type="button" class="ui-button ui-widget ui-state-default ui-corner-all" value="Save" onclick="updateSettings('JDOWNLOADER');" />
</div>
<div id="SUBSONIC" class="panel">
<br />
<br />
<a href="http://www.subsonic.org/pages/index.jsp" target="_blank" title="Visit SubSonic"><h3>SubSonic</h3></a>
<table>
<tr>
<td colspan="2"><p>Enter the details where MediaFrontPage will find SubSonic.</p></td>
</tr>
<tr>
<td align="right"><p>SubSonic IP:</p></td>
<td align="left"><input name="IP" title="Insert your SubSonic IP Address" size="20" value="<?php echo $config->get('IP','SUBSONIC')?>" /></td>
</tr>
<tr>
<td align="right"><p>SubSonic Port:</p></td>
<td align="left"><input name="PORT" title="Insert your SubSonic Port" size="4" value="<?php echo $config->get('PORT','SUBSONIC')?>" /></td>
</tr>
<tr>
<td align="right"><p>SubSonic Username:</p></td>
<td align="left"><input name="USERNAME" title="Insert your SubSonic Username" size="20" value="<?php echo $config->get('USERNAME','SUBSONIC')?>" /></td>
</tr>
<tr>
<td align="right"><p>SubSonic Password:</p></td>
<td align="left"><input name="PASSWORD" title="Insert your SubSonic Password" size="20" type="password" value="<?php echo $config->get('PASSWORD','SUBSONIC')?>" /></td>
</tr>
</table>
<input type="button" class="ui-button ui-widget ui-state-default ui-corner-all" value="Back" onClick="history.go(-1)">
<input type="button" class="ui-button ui-widget ui-state-default ui-corner-all" value="Save" onClick="updateSettings('SUBSONIC');" />
</div>
<div id="HEADPHONES" class="panel">
<br />
<br />
<h3>HeadPhones</h3>
<table>
<tr>
<td colspan="2"><p>Enter the details where MediaFrontPage will find HeadPhones.</p></td>
</tr>
<tr>
<td align="right"><p>HeadPhones IP:</p></td>
<td align="left"><input name="IP" title="Insert your HeadPhones IP Address" size="20" value="<?php echo $config->get('IP','HEADPHONES')?>" /></td>
</tr>
<tr>
<td align="right"><p>HeadPhones Port:</p></td>
<td align="left"><input name="PORT" title="Insert your HeadPhones Port" size="4" value="<?php echo $config->get('PORT','HEADPHONES')?>" /></td>
</tr>
<tr>
<td align="right"><p>HeadPhones Username:</p></td>
<td align="left"><input name="USERNAME" title="Insert your HeadPhones Username" size="20" value="<?php echo $config->get('USERNAME','HEADPHONES')?>" /></td>
</tr>
<tr>
<td align="right"><p>HeadPhones Password:</p></td>
<td align="left"><input name="PASSWORD" title="Insert your HeadPhones Password" size="20" type="password" value="<?php echo $config->get('PASSWORD','HEADPHONES')?>" /></td>
</tr>
</table>
<input type="button" class="ui-button ui-widget ui-state-default ui-corner-all" value="Back" onClick="history.go(-1)">
<input type="button" class="ui-button ui-widget ui-state-default ui-corner-all" value="Save" onClick="updateSettings('HEADPHONES');" />
</div>
<div id="SEARCH" class="panel">
<h3>Search Widget</h3>
<table>
<tr>
<td colspan="2"><p>Here you can specify your prefered Search criteria.</p></td>
</tr><tr>
<td align="right"><p>Preferred Index Site:</p></td>
<td align="left">
<p>
<input type="radio" title="Defaults to NZBMatrix" name="preferred_site" value="1" <?php echo ($config->get('preferred_site','SEARCH')=="1")?'CHECKED':'';?> />NZB Matrix
<input type="radio" title="Defaults to NZB.SU" name="preferred_site" value="2" <?php echo ($config->get('preferred_site','SEARCH')=="2")?'CHECKED':'';?> />NZB.SU
</p>
</td>
</tr>
<tr>
<td align="right"><p>Preferred Category:</p></td>
<td align="left"><input name="preferred_categories" title="This denotes which Category you want to search by default from your Preferred Provider." size="20" value="<?php echo $config->get('preferred_categories','SEARCH')?>" /></td>
</tr>
<tr>
<td align="right"><p>NZB Matrix Username:</p></td>
<td align="left"><input name="NZBMATRIX_USERNAME" title="Insert your NZBMatrix Username" size="20" value="<?php echo $config->get('NZBMATRIX_USERNAME','SEARCH')?>" /></td>
</tr>
<tr>
<td align="right"><p>NZB Matrix API:</p></td>
<td align="left"><input name="NZBMATRIX_API" title="Insert your NZBMatrix API" type="password" size="40" value="<?php echo $config->get('NZBMATRIX_API','SEARCH')?>" /><a href="http://nzbmatrix.com/account.php" target="_blank" title="go to Account page"><img src="media/question.png" height="20px"></a></td>
</tr>
<tr>
<td align="right"><p>NZB.SU API:</p></td>
<td align="left"><Input name="NZBSU_API" title="Insert your NZB.SU API" type="password" size="40" value="<?php echo $config->get('NZBSU_API','SEARCH')?>" /><a href="http://nzb.su/profile" target="_blank" title="go to profile page"><img src="media/question.png" height="20px"></a></td>
</tr>
<tr>
<td align="right"><p>NZB.SU Download Code:</p></td>
<td align="left"><input name="NZB_DL" title="Insert your NZB.SU Download Code" type="password" size="40" value="<?php echo $config->get('NZB_DL','SEARCH')?>" /><a href="http://nzb.su/rss" target="_blank" title="go to rss profile page"><img src="media/question.png" height="20px"></a></td>
</tr>
</table>
<input type="button" class="ui-button ui-widget ui-state-default ui-corner-all" value="Save" onclick="updateSettings('SEARCH');" />
</div>
<div id="TRAKT" class="panel">
<h3>Trakt.tv</h3>
<table>
<tr>
<td colspan="2"><p>trakt.tv info</p></td>
</tr>
<tr>
<td align="right"><p>trakt Username:</p></td>
<td align="left"><input name="TRAKT_USERNAME" title="Insert your trakt.tv Username" size="20" value="<?php echo $config->get('TRAKT_USERNAME','TRAKT')?>" /></td>
</tr>
<tr>
<td align="right"><p>trakt Password:</p></td>
<td align="left"><input name="TRAKT_PASSWORD" title="Insert your trakt.tv Password" type="password" size="20" value="<?php echo $config->get('TRAKT_PASSWORD','TRAKT')?>" /></td>
</tr>
<tr>
<td align="right"><p>trakt API:</p></td>
<td align="left"><input name="TRAKT_API" type="password" title="Insert your trakt.tv API" ize="40" value="<?php echo $config->get('TRAKT_API','TRAKT')?>" /><a href="http://trakt.tv/settings/api" target="_blank"><img src="media/question.png" height="20px"></a></td>
</tr>
</table>
<input type="button" class="ui-button ui-widget ui-state-default ui-corner-all" value="Save" onclick="updateSettings('TRAKT');" />
</div>
<div id="NAVBAR" class="panel">
<h3>Nav Links</h3>
<p>Here are the Navigation Links you see at the top of your page. You can add or remove them depending on the programs and URL's you use.</p>
<table id='table_nav'>
<tr>
<td>title</td>
<td>URL</td>
</tr>
<?php
$x = $config->get('NAVBAR');
foreach ($x as $title=>$url){
echo "<tr>
<td><input size='13' title='This will be the name in the Navigation Bar' name='title' value='".str_ireplace('_', ' ', $title)."'/></td>
<td><input name='VALUE' title='This will be the URL for ".str_ireplace('_', ' ', $title)."' size='30' value='$url'/></td>
</tr>";
}
?>
</table>
<input type="button" class="ui-button ui-widget ui-state-default ui-corner-all" value="ADD" onclick="addRowToTable('nav', 13, 30);" />
<input type="button" class="ui-button ui-widget ui-state-default ui-corner-all" value="REMOVE" onclick="removeRowToTable('nav');" />
<br />
<br />
<input type="button" class="ui-button ui-widget ui-state-default ui-corner-all" value="Save & Reload" onclick="updateAlternative('NAVBAR');setTimeout(top.frames['nav'].location.reload(), 5000);" />
</div>
<div id="SUBNAV" class="panel">
<h3>SubNav Links</h3>
<p style="width: 500px;" align="justify">Here are the Sub Navigation Links you see at the bottom of your page. You can add or remove any site you like. Simply give it a Title and a URL and it will show up on the Footer at the bottom of MediaFrontPage.</p>
<table id='table_subnav'>
<tr>
<td>Title</td>
<td>URL</td>
</tr>
<?php
$x = $config->get('SUBNAV');
foreach ($x as $title=>$url){
echo "<tr>
<td><input size='13' Title='Subnavigation label' name='TITLE' value='".str_ireplace('_', ' ', $title)."'/></td>
<td><input name='VALUE' Title='Subnavigation URL' size='30' value='$url'/></td>
</tr>";
}
?>
</table>
<input type="button" class="ui-button ui-widget ui-state-default ui-corner-all" value="ADD" onclick="addRowToTable('subnav', 13, 30);" />
<input type="button" class="ui-button ui-widget ui-state-default ui-corner-all" value="REMOVE" onclick="removeRowToTable('subnav');" />
<br />
<br />
<input type="button" class="ui-button ui-widget ui-state-default ui-corner-all" value="Save & Reload" onclick="updateAlternative('SUBNAV');setTimeout(top.frames['nav'].location.reload(), 5000);" />
</div>
<div id="HDD" class="panel">
<h3>Hard Drives</h3>
<p style="width: 500px;" align="justify">It does not matter what system it is running on, but you need to know where your media is stored on your HDD's.</p>
<table id='table_hdd'>
<tr>
<td>Title</td>
<td>Path</td>
</tr>
<?php
$x = $config->get('HDD');
foreach ($x as $title=>$url){
echo "<tr>
<td><input size='20' Title='Hard Drive name (the name in MFP, not necessarily the actual name)' name='TITLE' value='".str_ireplace('_', ' ', $title)."'/></td>
<td><input name ='VALUE' Title='Direct path to Hard Drive' size='20' value='$url'/></td>
</tr>";
}
?>
</table>
<input type="button" class="ui-button ui-widget ui-state-default ui-corner-all" value="ADD" onclick="addRowToTable('hdd', 20, 20);" />
<input type="button" class="ui-button ui-widget ui-state-default ui-corner-all" value="REMOVE" onclick="removeRowToTable('hdd');" />
<br />
<br />
<input type="button" class="ui-button ui-widget ui-state-default ui-corner-all" value="Save" onclick="updateAlternative('HDD');" />
</div>
<div id="MESSAGE" class="panel">
<h3>XBMC Instances for Message Widget</h3>
<p align="justify" style="width: 500px;">Do you have multiple instance of XBMC with different IP Addresses/Port Numbers. IE - The Kids room or Kitchen? If so, the Message Widget can send customized messages to these machine. IE - "Turn it off" or "Cup of Coffee please".</p>
<table id="table_msg">
<tr>
<td>Title</td>
<td>URL</td>
</tr>
<?php
$x = $config->get('MESSAGE');
foreach ($x as $title=>$url){
echo "<tr>
<td><input size='10' Title='XBMC Name' name='TITLE' value='".str_ireplace('_', ' ', $title)."'/></td>
<td><input size='40' Title='XBMC IP Address & Port' name='VALUE' value='$url'/></td>
</tr>";
}
?>
</table>
<input type="button" class="ui-button ui-widget ui-state-default ui-corner-all" value="ADD" onclick="addRowToTable('msg', 10, 40);" />
<input type="button" class="ui-button ui-widget ui-state-default ui-corner-all" value="REMOVE" onclick="removeRowToTable('msg');" />
<br />
<br />
<input type="button" class="ui-button ui-widget ui-state-default ui-corner-all" value="Save" onclick="updateAlternative('MESSAGE');" />
</div>
<div id="SECURITY" class="panel">
<h3>Security</h3>
<p>Worried someone could mess up your settings or interfere with your MediaFrontPage?</p>
<table>
<tr>
<td align="right"><p>MediaFrontPage Authentication:</p></td>
<td align="left"><p><input type="checkbox" name="PASSWORD_PROTECTED" <?php echo ($config->get('PASSWORD_PROTECTED','SECURITY') == "true")?'CHECKED':'';?> /></p></td>
</tr>
<tr>
<td align="right"><p>MediaFrontPage Username:</p></td>
<td align="left"><input name="USERNAME" size="20" Title="Insert the desired MediaFrontPage Username" value="<?php echo $config->get('USERNAME','SECURITY')?>" /></td>
</tr>
<tr>
<td align="right"><p>MediaFrontPage Password:</p></td>
<td align="left"><input name="PASSWORD" size="20" Title="Insert the desired MediaFrontPage Password" type="password" value="<?php echo $config->get('PASSWORD','SECURITY')?>" /></td>
</tr>
<tr>
<td align="right"><p>MediaFrontPage Secured with API:</p></td>
<td align="left"><p><input type="checkbox" name="mfpsecured" <?php echo ($config->get('mfpsecured','SECURITY') == "true")?'CHECKED':''; ?>></p></td>
</tr>
<tr>
<td align="right"><p>MediaFrontPage API Key:</p></td>
<td align="left"><input name="mfpapikey" Title="Type an API for MediaFrontPage - You can make this up" type="password" size="20" value="<?php echo $config->get('mfpapikey','SECURITY')?>" /></td>
</tr>
</table>
<input type="button" class="ui-button ui-widget ui-state-default ui-corner-all" value="Save" onclick="updateSettings('SECURITY');" />
</div>
<div id="MODS" class="panel">
<h3>CSS Modifications:</h3>
<p align="justify" style="width: 500px;">These are 'user created' CSS modifications submitted by some of our users. These change mainly the look and colours of MediaFrontPage. If you want to contribute your own modification, submit it to us on the <a href="http://forum.xbmc.org/showthread.php?t=83304" target="_blank">MediaFrontPage Support Thread</a>.</p>
<table style="max-height:300px;">
<tr align="center">
<td><img class="widget" src="media/examples/lightheme.jpg" height="100px" /></td>
<td><img class="widget" src="media/examples/hernadito.jpg" height="100px" /></td>
<td><img class="widget" src="media/examples/black_modern_glass.jpg" height="100px" /></td>
</tr>
<tr>
<td align="center">
<input type="radio" name="ENABLED" value="lighttheme" <?php echo ($config->get('ENABLED','MODS') == "lighttheme")?'CHECKED':'';?> />
<p>Light Theme</p>
</td>
<td align="center">
<input type="radio" name="ENABLED" value="hernandito" <?php echo ($config->get('ENABLED','MODS') == "hernandito")?'CHECKED':''; ?>>
<p>Hernandito's Theme</p>
</td>
<td align="center">
<input type="radio" name="ENABLED" value="black_modern_glass" <?php echo ($config->get('ENABLED','MODS') == "black_modern_glass")?'CHECKED':'';?> />
<p>Black Modern Glass Theme</p>
</td>
</tr>
<tr>
<td><img class="widget" src="media/examples/minimal-posters.jpg" height="100px" /></td>
<td><img class="widget" src="media/examples/minimal-banners.jpg" height="100px" /></td>
<td></td>
</tr>
<tr>
<td align="center">
<input type="radio" name="ENABLED" value="comingepisodes-minimal-poster" <?php echo ($config->get('ENABLED','MODS') == "comingepisodes-minimal-poster")?'CHECKED':'';?> />
<p>Minimal Posters</p>
</td>
<td align="center">
<input type="radio" name="ENABLED" value="comingepisodes-minimal-banner" <?php echo ($config->get('ENABLED','MODS') == "comingepisodes-minimal-banner")?'CHECKED':'';?> />
<p>Minimal Banners</p>
</td>
<td>
<input type="radio" name="ENABLED" value="" <?php echo ($config->get('ENABLED','MODS') == "")?'CHECKED':''; ?> />
<p>OFF</p>
</td>
</tr>
</table>
<input type="button" class="ui-button ui-widget ui-state-default ui-corner-all" value="Save" onclick="updateSettings('MODS');" />
</div>
<div id="RSS" class="panel">
<h3>RSS Feeds</h3>
<p align="justify" style="width: 500px;">We also added an RSS Feed from the most popular NZB Sites so you can instantly grab an NZB from their Feeds and load it straight to SabNZBd+ with no other user intervention. The default/shown RSS is the first one on this list.</p>
<table id="table_rss">
<tr>
<td>title</td>
<td>URL</td>
</tr>
<?php
$x = $config->get('RSS');
foreach ($x as $title=>$url){
echo "<tr>
<td>
<input size='20' name='title' value='".urldecode(str_ireplace('_', ' ', $title))."'/>
</td>
<td>
<input size='40' name='VALUE' value='$url'/>
</td>
</tr>";
}
?>
</table>
<input type="button" class="ui-button ui-widget ui-state-default ui-corner-all" value="ADD" onclick="addRowToTable('rss', 20, 40);" />
<input type="button" class="ui-button ui-widget ui-state-default ui-corner-all" value="REMOVE" onclick="removeRowToTable('rss');" />
<br />
<br />
<input type="button" class="ui-button ui-widget ui-state-default ui-corner-all" value="Save" onclick="updateAlternative('RSS');" />
</div>
<div id="CONTROL" class="panel">
<h3>Control Widget</h3>
<p align="justify" style="width: 500px;">These commands are JSON API controls that directly communicate with the computer that MediaFrontPage is installed on. A few options are available. Will be added here soon.</p>
<table id="table_control">
<tr>
<td>title</td>
<td>URL</td>
</tr>
<?php
$x = $config->get('CONTROL');
foreach ($x as $title=>$url){
echo "<tr>
<td>
<input size='20' name='title' value='".urldecode(str_ireplace('_', ' ', $title))."'/>
</td>
<td>
<input size='40' name='VALUE' value='$url'/>
</td>
</tr>";
}
?>
</table>
<input type="button" class="ui-button ui-widget ui-state-default ui-corner-all" value="ADD" onclick="addRowToTable('control', 20, 40);" />
<input type="button" class="ui-button ui-widget ui-state-default ui-corner-all" value="REMOVE" onclick="removeRowToTable('control');" />
<br />
<br />
<input type="button" class="ui-button ui-widget ui-state-default ui-corner-all" value="Save" onclick="updateAlternative('CONTROL');" />
</div>
</div>
</div>
<!-- <input type="button" value="Save ALL" onclick="saveAll();"> -->
</div>
</div>
</center>
<!--
<div>
<input value="Regular Notice" onclick="$.pnotify({
pnotify_title: 'Regular Notice',
pnotify_text: 'Check me out! I\'m a notice.'
});" type="button" class="ui-button ui-widget ui-state-default ui-corner-all" role="button" aria-disabled="false">
</div>
-->
</body>
</html>
<?php
}
?>