summaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
authorJayaram R Pai2014-06-21 20:01:35 +0530
committerJayaram R Pai2014-06-21 20:01:35 +0530
commitc540059e5dc6efed8a97fecb1ec72ed730657e79 (patch)
treeaacca5261bdff29d4e5f6f14de7ed7b18f15018e /index.php
parent20a1808c6dce9ee019ae8f1c3e8a53577a00e712 (diff)
downloadscilab_cloud_interface-c540059e5dc6efed8a97fecb1ec72ed730657e79.tar.gz
scilab_cloud_interface-c540059e5dc6efed8a97fecb1ec72ed730657e79.tar.bz2
scilab_cloud_interface-c540059e5dc6efed8a97fecb1ec72ed730657e79.zip
fixed review nos display on eid in $_GET
Diffstat (limited to 'index.php')
-rwxr-xr-xindex.php12
1 files changed, 9 insertions, 3 deletions
diff --git a/index.php b/index.php
index 64ea634..ef017ae 100755
--- a/index.php
+++ b/index.php
@@ -16,8 +16,8 @@
<script>
$(document).ready(function(){
- // var webroot = "http://cloud.scilab.in/";
- var webroot = "http://localhost/cloud/";
+ var webroot = "http://cloud.scilab.in/";
+ // var webroot = "http://localhost/cloud/";
var imgdata = '<img src="images/ajax-loader.gif">';
$("#single_image").fancybox();
$('.fancymenu').fancybox({title: ""});
@@ -327,7 +327,13 @@
Scilab Code
</span>
<span class="pull-right">
- <a id="nos" href="#" target="_blank"></a>
+ <?php
+ if($eid && $elements["nos"]) {
+ echo "<a id='nos' href='http://scilab.in/cloud_comments/{$eid}' target='_blank' style='display: inline;'>{$elements['nos']} reviews</a>";
+ } else {
+ echo "<a id='nos' href='#' target='_blank'></a>";
+ }
+ ?>
</span>
</td>
<td class="white-text">Output</td>