File indexing completed on 2024-11-24 05:19:14

0001 
0002 <!DOCTYPE html>
0003 <html lang="en"><head>
0004 <meta http-equiv="content-type" content="text/html; charset=UTF-8">
0005     <meta charset="utf-8">
0006     <meta http-equiv="X-UA-Compatible" content="IE=edge">
0007     <meta name="viewport" content="width=device-width, initial-scale=1">
0008     <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
0009     <meta name="description" content="ocs-server webclient">
0010     <meta name="author" content="woffy">
0011     <title>PlasmaStore</title>
0012     <link rel="stylesheet" href="/plasmastore/css/bootstrap.css">
0013     <link rel="stylesheet" href="/plasmastore/css/dashboard.css">
0014     <link rel="stylesheet" href="/plasmastore/css/logo.css">
0015     <link rel="stylesheet" href="/plasmastore/css/app.css">
0016     <link rel="stylesheet" href="/plasmastore/jRating/jquery/jRating.jquery.css">
0017     <!--<link rel="stylesheet" href="css/responsive_preview.css">-->
0018   </head>
0019 
0020 <body>
0021  <?php EStructure::view("topbar"); ?>
0022 
0023 <div class="container-fluid">
0024       <?php EStructure::view("categories_sidebar", $data[0]) ?>
0025   </div>
0026 <div class="col-md-7 col-md-offset-2 col-sm-offset-3">
0027     <ol class="breadcrumb">
0028         <?php 
0029         echo "
0030         <li><a href=\"#\">Category 1</a></li>
0031         <li><a href=\"#\">Subcategory a</a></li>
0032         <li class=\"active\">".$data[1]["ocs"]["data"]["content"][0]["name"]."</li>
0033         ";
0034         ?>
0035 </ol>
0036 
0037 </div>
0038  <div class="col-md-7 col-md-offset-2 col-sm-offset-3">
0039     <div class="thumbnail">
0040         
0041     <div id="img_carousel" class="carousel slide" data-ride="carousel">
0042             <!--indicators -->
0043             <ol class="carousel-indicators">
0044                 <li data-target="#img_carousel" data-slide="0" class="active"></li>
0045                 <?php
0046                 if (!empty($data[1]["ocs"]["data"]["content"][0]["preview2"])){
0047                     echo "<li data-target=\"#img_carousel\" data-slide=\"1\" class=\"active\"></li>";
0048                     if (!empty($data[1]["ocs"]["data"]["content"][0]["preview3"])){
0049                         echo "<li data-target=\"#img_carousel\" data-slide=\"2\" class=\"active\"></li>";
0050                     }
0051                 }
0052                 ?>
0053             </ol>
0054             
0055             <!-- wrapper for slides -->
0056             <div class="carousel-inner" role="listbox">
0057                 <?php echo "
0058                 <div class=\"item active\">
0059                     <img src=\"".$data[1]["ocs"]["data"]["content"][0]["preview1"]."\">
0060                 </div>";
0061                 if (!empty($data[1]["ocs"]["data"]["content"][0]["preview2"])){
0062                     echo "
0063                         <div class=\"item\">
0064                             <img src=\"".$data[1]["ocs"]["data"]["content"][0]["preview2"]."\">
0065                         </div>";
0066                     if (!empty($data[1]["ocs"]["data"]["content"][0]["preview3"])){
0067                         echo "
0068                             <div class=\"item\">
0069                                 <img src=\"".$data[1]["ocs"]["data"]["content"][0]["preview3"]."\">
0070                             </div>";
0071                         }
0072                     }
0073                 ?>
0074             </div>
0075             <!-- carousel arrows -->
0076             <?php
0077             if (!empty($data[1]["ocs"]["data"]["content"][0]["preview2"])){
0078                 echo "
0079             <a class=\"left carousel-control\" href=\"#img_carousel\" role=\"button\" data-slide=\"prev\">
0080                 <span class=\"glyphicon glyphicon-chevron-left\" aria-hidden=\"true\"> </span>
0081                 <span class=\"sr-only\">Previous</span>
0082             </a>
0083             <a class=\"right carousel-control\" href=\"#img_carousel\" role=\"button\" data-slide=\"next\">
0084                 <span class=\"glyphicon glyphicon-chevron-right\" aria-hidden=\"true\"> </span>
0085                 <span class=\"sr-only\">Next</span>
0086             </a>
0087         </div>";}
0088         ?>
0089 
0090 
0091         <!-- App description -->
0092         <div class="caption-full">
0093             <h4 class="pull-right">Free</h4>
0094             <?php
0095             echo "<h4><a href=\"#\">".$data[1]["ocs"]["data"]["content"][0]["name"]."</a></h4>";
0096             echo "<p>".$data[1]["ocs"]["data"]["content"][0]["description"]."</p>";
0097             ?>
0098         </div> <!-- .App description -->
0099         <div class="ratings">
0100             <p class="pull-right">3 reviews </p>
0101             <p>
0102                 <span class="glyphicon glyphicon-star"></span>
0103                 <span class="glyphicon glyphicon-star"></span>
0104                 <span class="glyphicon glyphicon-star"></span>
0105                 <span class="glyphicon glyphicon-star"></span>
0106                 <span class="glyphicon glyphicon-star-empty"></span>
0107                 4.0 stars
0108             </p>
0109         </div> <!-- .ratings -->
0110         <div class="text-left">
0111             <?php
0112             echo "<a class=\"btn btn-success\" style=\"margin-left:10px;\" href=\"".$data[1]["ocs"]["data"]["content"][0]["downloadlink1"]."\"><span class=\"glyphicon glyphicon-download-alt\"></span> Download it!</a>";
0113             ?>
0114         </div>
0115         <br>
0116 
0117     </div> <!-- .thumbnail-->
0118     <!--div class="well"-->
0119         <ul class="nav nav-tabs">
0120             <li role="presentation" class="active"><a href="#reviews" data-toggle="tab">Reviews</a></li>
0121             <li><a href="#comments" data-toggle="tab">Comments</a></li>
0122             <li><a href="#author" data-toggle="tab">About the author</a></li>
0123         </ul>
0124 
0125         <div class="tab-content">
0126             <div class="tab-pane fade in active" id="reviews">
0127                 <div class="well">
0128                     <div class="text-right">
0129                         <?php
0130                         if(OCSUser::is_logged()){
0131                         echo "<a class=\"btn btn-success\" href=\"#reviews-anchor\" id=\"open-review-box\"> Leave a Review</a>";
0132                         }
0133                         else {echo "<h4>Login to leave a review</h4>";}
0134                         ?>
0135                     </div>
0136                     <div class="row" id="post-review-box" style="display:none">
0137                         <div class="col-md-12">
0138                             <?php 
0139                             echo "<form accept-charset=\"UTF-8\" action=\"/plasmastore/app_description/leaveComment/".$data[1]["ocs"]["data"]["content"][0]["id"]."\" method=\"post\">";
0140                             ?>
0141                                 <input id="ratings-hidden" name="rating" type="hidden">
0142                                 <input type="text" class="form-control" name="inputSubject" placeholder="review subject">
0143                                 <textarea class="form-control animated" cols="50" id="new-review" name="inputMessage" placeholder="Enter your review here..." rows="5"></textarea>
0144 
0145                                 <div class="text-right">
0146                                     <div class="stars starrr" data-rating="0">
0147                                         <a class="btn btn-danger btn-sm" href="#" id="close-review-box" style="display:none; margin-right: 10px;">
0148                                             <span class="glyphicon glyphicon-remove"></span>Cancel</a>
0149                                             <button class="btn btn-success btn-sm" type="submit">Save</button>
0150                                     </div>
0151                                 </div>
0152                             </form>
0153                         </div>
0154                     </div>
0155 
0156                     <hr>
0157                     <?php
0158                     if(isset($data[2]["ocs"]["data"]["comment"])){
0159                         foreach($data[2]["ocs"]["data"]["comment"] as $comment){
0160                             echo "
0161                             <div class=\"row\">
0162                             <div class=\"col-md-12\">
0163                             <b>".$comment["subject"]."</b>
0164                             <p>".$comment["text"]."</p>
0165                             <p>left by <a href=/plasmastore/publicprofile/".$comment["user"].">".$comment["user"]."</a></p>
0166                             <span class=\"pull-right\">".$comment["date"]."</span>
0167                             </div>
0168                             </div>
0169                             <hr>";
0170                         }
0171                     } else {echo "no comments found";}
0172                     ?>
0173                     <!--div class="row">
0174                         <div class="col-md-12">
0175                             <span class="glyphicon glyphicon-star"></span>
0176                             <span class="glyphicon glyphicon-star"></span>
0177                             <span class="glyphicon glyphicon-star"></span>
0178                             <span class="glyphicon glyphicon-star"></span>
0179                             <span class="glyphicon glyphicon-star-empty"></span>
0180                             Anonymous
0181                             <span class="pull-right">10 days ago</span>
0182                             <p>aaaaaaa</p>
0183                         </div>
0184                     </div>
0185                 
0186 
0187                 <hr>
0188 
0189                 <div class="row">
0190                         <div class="col-md-12">
0191                             <span class="glyphicon glyphicon-star"></span>
0192                             <span class="glyphicon glyphicon-star"></span>
0193                             <span class="glyphicon glyphicon-star"></span>
0194                             <span class="glyphicon glyphicon-star"></span>
0195                             <span class="glyphicon glyphicon-star-empty"></span>
0196                             Anonymous
0197                             <span class="pull-right">10 days ago</span>
0198                             <p>bbb</p>
0199                         </div>
0200                     </div-->
0201                 </div> <!-- .well -->
0202          </div>
0203 
0204             <div class="tab-pane fade" id="comments">
0205                 <div class="well">
0206                     <div class="text-right">
0207                         <a class="btn btn-success">Leave a comment</a>
0208                     </div>
0209                     <hr>
0210                 </div>
0211              </div>
0212         </div> <!-- .tab content -->
0213     <!--/div--> <!-- .well -->
0214  </div> <!-- .col-md-7 col-md-offset-2 col-sm-offset-3-->
0215   
0216 
0217     <!-- Bootstrap core JavaScript
0218     ================================================== -->
0219     <!-- Placed at the end of the document so the pages load faster -->
0220     <script src="/plasmastore/js/jquery.js"></script>
0221     <script src="/plasmastore/js/bootstrap.js"></script>
0222     <script src="/plasmastore/js/sidebuttons.js"></script>
0223     <script src="/plasmastore/js/reviewbox.js"></script>
0224     <script src="/plasmastore/jRating/jquery/jRating.jquery.js"></script>
0225     <!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
0226     <script src="/plasmastore/js/ie10-viewport-bug-workaround.js"></script>
0227 </body>
0228 </html>
0229