equal
deleted
inserted
replaced
|
1 <?php |
|
2 function ocmx_upgrade_options (){ |
|
3 global $options, $upgrade_options, $themename, $manualurl; |
|
4 if(isset($_FILES["ocmx_update_file"])) |
|
5 { |
|
6 include_once(TEMPLATEPATH."/ocmx/ocmx-upgrade.php"); |
|
7 ocmx_theme_update(); |
|
8 } |
|
9 ocmx_header(); |
|
10 ?> |
|
11 |
|
12 <h2>OCMX Theme Upgrades & Hotfixes</h2> |
|
13 |
|
14 <?php if(!$_GET['current_tab']) : $current_tab = "1"; else : $current_tab = $_GET['current_tab']; endif; ?> |
|
15 |
|
16 <form action="<?php echo $_SERVER['REQUEST_URI']; ?>" id="ocmx_form" method="post" enctype="multipart/form-data"> |
|
17 <p class="submit"><input name="save" type="submit" value="Save changes" /></p> |
|
18 <input type="hidden" name="save_options" value="1" /> |
|
19 <input type="hidden" name="general_options" value="1" /> |
|
20 <div id="container"> |
|
21 <div class="content_box"> |
|
22 <div class="ocmx-tabs"> |
|
23 <ul class="tabs clearfix"> |
|
24 <li <?php if($current_tab == 1){echo "class=\"selected\"";} ?>><a href="javascript:;" id="tab_href_1">Upgrade</a></li> |
|
25 </ul> |
|
26 </div> |
|
27 <div class="ocmx-content"> |
|
28 <div class="header"><div></div></div> |
|
29 <div class="content clearfix"> |
|
30 <div <?php if($current_tab == 1){echo "class=\"selected_tab\"";} else {echo "class=\"no_display\"";} ?> id="tab-1"> |
|
31 <?php fetch_options($upgrade_options); ?> |
|
32 <br class="clearboth" /> |
|
33 </div> |
|
34 </div> |
|
35 <div class="footer"><div></div></div> |
|
36 |
|
37 </div> |
|
38 </div> |
|
39 </div> |
|
40 <p class="submit"><input name="save" type="submit" value="Save changes" /></p> |
|
41 |
|
42 <div class="clearfix"></div> |
|
43 </form> |
|
44 |
|
45 <div class="clearfix"></div> |
|
46 |
|
47 <?php |
|
48 }; |
|
49 ?> |