Forráskód Böngészése

[svn r11730] hide the link "details" when the lp progress is 0%

Eric Marguin 18 éve
szülő
commit
a2b0eebd49
1 módosított fájl, 7 hozzáadás és 0 törlés
  1. 7 0
      main/mySpace/myStudents.php

+ 7 - 0
main/mySpace/myStudents.php

@@ -499,9 +499,16 @@ if(!empty($_GET['student']))
 							<?php echo date('Y-m-d',$start_time) ?>
 							<?php echo date('Y-m-d',$start_time) ?>
 						</td>
 						</td>
 						<td align="center">
 						<td align="center">
+							<?php
+							if($progress > 0)
+							{
+							?>
 							<a href="lp_tracking.php?course=<?php echo $_GET['course'] ?>&origin=<?php echo $_GET['origin'] ?>&lp_id=<?php echo $a_learnpath['id']?>&student_id=<?php echo $a_infosUser['user_id'] ?>">
 							<a href="lp_tracking.php?course=<?php echo $_GET['course'] ?>&origin=<?php echo $_GET['origin'] ?>&lp_id=<?php echo $a_learnpath['id']?>&student_id=<?php echo $a_infosUser['user_id'] ?>">
 								<img src="../img/2rightarrow.gif" border="0" />
 								<img src="../img/2rightarrow.gif" border="0" />
 							</a>
 							</a>
+							<?php
+							}
+							?>
 						</td>
 						</td>
 					</tr>
 					</tr>