File indexing completed on 2024-11-24 05:19:14
0001 <!DOCTYPE html> 0002 <html lang="en"><head> 0003 <meta http-equiv="content-type" content="text/html; charset=UTF-8"> 0004 <meta charset="utf-8"> 0005 <meta http-equiv="X-UA-Compatible" content="IE=edge"> 0006 <meta name="viewport" content="width=device-width, initial-scale=1"> 0007 <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags --> 0008 <meta name="description" content="ocs-server webclient"> 0009 <meta name="author" content="woffy"> 0010 <title>PlasmaStore</title> 0011 <link rel="stylesheet" href="/plasmastore/css/bootstrap.css"> 0012 <link rel="stylesheet" href="/plasmastore/css/dashboard.css"> 0013 <link rel="stylesheet" href="/plasmastore/css/logo.css"> 0014 <link rel="stylesheet" href="/plasmastore/css/app.css"> 0015 <link rel="stylesheet" href="/plasmastore/css/navbar-center.css"> 0016 <!--<link rel="stylesheet" href="css/responsive_preview.css">--> 0017 </head> 0018 0019 <body> 0020 <?php EStructure::view("topbar") ?> 0021 0022 0023 <div class="col-md-7 col-md-offset-2 col-sm-offset-3"> 0024 <div class="panel panel-default"> 0025 <div class="panel-body"> 0026 <?php 0027 echo " 0028 <h1 class=\"page-header\">Hi ".$data[0]["ocs"]["data"]["person"][0]["firstname"]."</h1> 0029 <h3>These are your account info:</h2> 0030 <h4>First Name: ".$data[0]["ocs"]["data"]["person"][0]["firstname"]."</h4> 0031 <h4>Last Name: ".$data[0]["ocs"]["data"]["person"][0]["lastname"]."</h4> 0032 <h4>User Name: ".$data[0]["ocs"]["data"]["person"][0]["personid"]."</h4> 0033 <h4>Email: ".$data[0]["ocs"]["data"]["person"][0]["email"]."</h4> "; 0034 ?> 0035 0036 </div> 0037 </div> 0038 <ul class="nav nav-tabs"> 0039 <li role="presentation" class="active"><a href="#my_apps" data-toggle="tab">My Applications</a></li> 0040 <li><a href="#my_desktop_stuff">My Desktop stuff</a></li> 0041 <li><a href="#my_firends">My Friends</a> 0042 <li><a href="#my_firends">My Messages</a> 0043 </ul> 0044 <div class="tab-content"> 0045 <div class="tab-pane fade in active" id="my_apps"> 0046 <div class="well"> 0047 <div class="text-right"> 0048 <a class="btn btn-success" id="open-uploadapp-box">Upload a new app</a> 0049 </div> 0050 <div class="row" id="post-uploadapp-box" style="display:none"> 0051 <div class="col-md-12"> 0052 <form class="form-horizontal" enctype="multipart/form-data" action="/plasmastore/userpanel/upload" method="post"> 0053 <div class="text-right"> 0054 <a class="btn btn-danger btn-sm" href="#" id="close-uploadapp-box" style="display:none; margin-right: 10px;">Cancel</a> 0055 </div> 0056 <br> 0057 <div class="form-group"> 0058 <label for="inputTitle" class="col-sm-2 control-label">Title</label> 0059 <div class="col-sm-10"> 0060 <input type="text" class="form-control" name="inputTitle" placeholder="Title"> 0061 </div> 0062 </div> 0063 <div class="form-group"> 0064 <label for="type" class="col-sm-2 control-label">Category</label> 0065 <div class="col-sm-10"> 0066 <select name="type"> 0067 <?php foreach($data[2]["ocs"]["data"]["category"] as $category) { 0068 echo "<option value=".$category["id"].">".$category["name"]."</option>"; 0069 } ?> 0070 </select> 0071 </div> 0072 </div> 0073 <div class="form-group"> 0074 <label for="inputDownloadName" class="col-sm-2 control-label">Download name</label> 0075 <div class="col-sm-10"> 0076 <input type="text" class="form-control" name="inputDownloadName" placeholder="this label will be shown to download your app"> 0077 </div> 0078 </div> 0079 <div class="form-group"> 0080 <label for="inputDownloadLink" class="col-sm-2 control-label">Download link</label> 0081 <div class="col-sm-10"> 0082 <input type="text" class="form-control" name="inputDownloadLink" placeholder="fill this only if you don't want to host your app on this website"> 0083 </div> 0084 </div> 0085 <div class="form-group"> 0086 <label for="inputDownloadFile" class="col-sm-2 control-label">Download File</label> 0087 <div class="col-sm-10"> 0088 <input type="file" class="form-control" name="inputDownloadFile" id="inputDownloadFile"> 0089 </div> 0090 </div> 0091 <div class="form-group"> 0092 <label for="inputScreenshot1" class="col-sm-2 control-label">Screenshot 1</label> 0093 <div class="col-sm-10"> 0094 <input type="file" class="form-control" name="inputScreenshot1" id="inputScreenshot1"> 0095 </div> 0096 </div> 0097 <div class="form-group"> 0098 <label for="inputScreenshot2" class="col-sm-2 control-label">Screenshot 2</label> 0099 <div class="col-sm-10"> 0100 <input type="file" class="form-control" name="inputScreenshot2" id="inputScreenshot2"> 0101 </div> 0102 </div> 0103 <div class="form-group"> 0104 <label for="inputScreenshot1" class="col-sm-2 control-label">Screenshot 3</label> 0105 <div class="col-sm-10"> 0106 <input type="file" class="form-control" name="inputScreenshot3" id="inputScreenshot1"> 0107 </div> 0108 </div> 0109 <div class="form-group"> 0110 <label for="inputSummary" class="col-sm-2 control-label">Summary</label> 0111 <div class="col-sm-10"> 0112 <input type="text" class="form-control" name="inputSummary" placeholder="a very short description of your app to be shown in previews"> 0113 </div> 0114 </div> 0115 <div class="form-group"> 0116 <label for="inputDescription" class="col-sm-2 control-label">Description</label> 0117 <div class="col-sm-10"> 0118 <textarea rows="5" class="form-control" name="inputDescription" placeholder="a complete description of your app"></textarea> 0119 </div> 0120 </div> 0121 <div class="form-group"> 0122 <label for="inputVersion" class="col-sm-2 control-label">Version</label> 0123 <div class="col-sm-10"> 0124 <input type="text" class="form-control" name="inputVersion" placeholder="1.0"> 0125 </div> 0126 </div> 0127 <div class="form-group"> 0128 <label for="inputChangelog" class="col-sm-2 control-label">Changelog</label> 0129 <div class="col-sm-10"> 0130 <textarea class="form-control" rows="3" name="inputChangelog" placeholder="list the new changes/fixes have you made"></textarea> 0131 </div> 0132 </div> 0133 <button class="btn btn-success btn-sm" type="submit">Upload!</button> 0134 </form> 0135 </div> 0136 </div> <!-- .div class="row" id="post-uploadapp-box" style="display:none" --> 0137 <?php 0138 if (isset($data[1]["ocs"]["data"]["content"])){ 0139 $number="0"; 0140 echo "<table class=\"table table-striped\"> 0141 <thead> 0142 <tr> 0143 <th>#</th> 0144 <th>Name</th> 0145 <th>Delete</th> 0146 <th>Edit</th> 0147 </tr> 0148 </thead> 0149 <tbody>"; 0150 foreach($data[1]["ocs"]["data"]["content"] as $content){ 0151 //if(OCSUser::login()==$content["personid"]){ 0152 $number=$number+1; 0153 echo " 0154 <tr> 0155 <td>$number</td> 0156 <td><a href=\"/plasmastore/app_description/show/".$content["id"]."/".ERewriter::prettify($content["name"])."\">".$content["name"]."</td> 0157 <td><a class=\"btn-sm btn-danger\" href=\"/plasmastore/home/delData/".$content["id"]."\">Delete <span class=\"glyphicon glyphicon-trash\"></span></a></td> 0158 <td><a class=\"btn-sm btn-success open-editapp-box".$content["id"]."\" onclick=\"$(this).openEditBox(".$content["id"].");\" href=\"#\">Edit</a> 0159 0160 <div class=\"row post-editapp-box".$content["id"]."\" style=\"display:none\"> 0161 <div class=\"col-md-12\"> 0162 <form class=\"form-horizontal\" enctype=\"multipart/form-data\" action=\"/plasmastore/userpanel/edit/".$content["id"]."\" method=\"post\"> 0163 <div class=\"form-group\"> 0164 <label for=\"inputTitle\" class=\"col-sm-2 control-label\">Title</label> 0165 <div class=\"col-sm-10\"> 0166 <input type=\"text\" class=\"form-control\" name=\"inputTitle\" value=\"".$content["name"]."\"> 0167 </div> 0168 </div> 0169 <div class=\"form-group\"> 0170 <label for=\"type\" class=\"col-sm-2 control-label\">Category</label> 0171 <div class=\"col-sm-10\"> 0172 <select name=\"type\">"; 0173 foreach($data[2]["ocs"]["data"]["category"] as $category) { 0174 if ($category["id"]==$content["id"]){ 0175 echo "<option value=".$category["id"]." selected>".$category["name"]."</option>"; 0176 } 0177 else { 0178 echo "<option value=".$category["id"].">".$category["name"]."</option>"; 0179 } 0180 } 0181 echo " 0182 </select> 0183 </div> 0184 </div> 0185 <div class=\"form-group\"> 0186 <label for=\"inputDownloadName\" class=\"col-sm-2 control-label\">Download name</label> 0187 <div class=\"col-sm-10\"> 0188 <input type=\"text\" class=\"form-control\" name=\"inputDownloadName\" value=\"".$content["downloadname1"]."\"> 0189 </div> 0190 </div> 0191 <div class=\"form-group\"> 0192 <label for=\"inputDownloadLink\" class=\"col-sm-2 control-label\">Download link</label> 0193 <div class=\"col-sm-10\"> 0194 <input type=\"text\" class=\"form-control\" name=\"inputDownloadLink\" value=\"".$content["downloadlink1"]."\"> 0195 </div> 0196 </div> 0197 <div class=\"form-group\"> 0198 <label for=\"inputDownloadFile\" class=\"col-sm-2 control-label\">Download File</label> 0199 <div class=\"col-sm-10\"> 0200 <input type=\"file\" class=\"form-control\" name=\"inputDownloadFile\" id=\"inputDownloadFile\"> 0201 </div> 0202 </div> 0203 <div class=\"form-group\"> 0204 <label for=\"inputScreenshot1\" class=\"col-sm-2 control-label\">Screenshot 1</label> 0205 <div class=\"col-sm-10\"> 0206 <input type=\"file\" class=\"form-control\" name=\"inputScreenshot1\" id=\"inputScreenshot1\"> 0207 </div> 0208 </div> 0209 <div class=\"form-group\"> 0210 <label for=\"inputScreenshot2\" class=\"col-sm-2 control-label\">Screenshot 2</label> 0211 <div class=\"col-sm-10\"> 0212 <input type=\"file\" class=\"form-control\" name=\"inputScreenshot2\" id=\"inputScreenshot2\"> 0213 </div> 0214 </div> 0215 <div class=\"form-group\"> 0216 <label for=\"inputScreenshot1\" class=\"col-sm-2 control-label\">Screenshot 3</label> 0217 <div class=\"col-sm-10\"> 0218 <input type=\"file\" class=\"form-control\" name=\"inputScreenshot3\" id=\"inputScreenshot1\"> 0219 </div> 0220 </div> 0221 <div class=\"form-group\"> 0222 <label for=\"inputSummary\" class=\"col-sm-2 control-label\">Summary</label> 0223 <div class=\"col-sm-10\"> 0224 <input type=\"text\" class=\"form-control\" name=\"inputSummary\" value=\"".$content["summary"]."\"> 0225 </div> 0226 </div> 0227 <div class=\"form-group\"> 0228 <label for=\"inputDescription\" class=\"col-sm-2 control-label\">Description</label> 0229 <div class=\"col-sm-10\"> 0230 <textarea rows=\"5\" class=\"form-control\" name=\"inputDescription\">".$content["description"]."</textarea> 0231 </div> 0232 </div> 0233 <div class=\"form-group\"> 0234 <label for=\"inputVersion\" class=\"col-sm-2 control-label\">Version</label> 0235 <div class=\"col-sm-10\"> 0236 <input type=\"text\" class=\"form-control\" name=\"inputVersion\" value=\"".$content["version"]."\"> 0237 </div> 0238 </div> 0239 <div class=\"form-group\"> 0240 <label for=\"inputChangelog\" class=\"col-sm-2 control-label\">Changelog</label> 0241 <div class=\"col-sm-10\"> 0242 <textarea class=\"form-control\" rows=\"3\" name=\"inputChangelog\">".$content["changelog"]."</textarea> 0243 </div> 0244 </div> 0245 <a class=\"btn btn-danger btn-sm close-editapp-box".$content["id"]."\" onclick=\"$(this).closeEditBox(".$content["id"].");\" href=\"#\" style=\"display:none; margin-right: 10px;\">Cancel</a> 0246 <button class=\"btn btn-success btn-sm\" type=\"submit\">Save changes</button> 0247 </form> 0248 </div> 0249 </div> 0250 </td> 0251 </tr>"; 0252 } 0253 } 0254 //} 0255 echo"</tbody>"; 0256 ?> 0257 </table> 0258 </div> 0259 </div> 0260 <?php 0261 $name = OCSUser::login(); 0262 $pager1 = new Pager("userpanel","v1/content/data/?user=$name"); 0263 $pager1->pagination(); ?> 0264 </div> 0265 0266 0267 0268 </div> <!-- .col-md-7 col-md-offset-2 col-sm-offset-3--> 0269 0270 0271 <!-- Bootstrap core JavaScript 0272 ================================================== --> 0273 <!-- Placed at the end of the document so the pages load faster --> 0274 <script src="/plasmastore/js/jquery.js"></script> 0275 <script src="/plasmastore/js/bootstrap.js"></script> 0276 <script src="/plasmastore/js/sidebuttons.js"></script> 0277 <script src="/plasmastore/js/uploadbox.js"></script> 0278 <script src="/plasmastore/js/editbox.js"></script> 0279 <!-- IE10 viewport hack for Surface/desktop Windows 8 bug --> 0280 <script src="/plasmastore/js/ie10-viewport-bug-workaround.js"></script> 0281 </body> 0282 </html> 0283