[svn r22248] logic changes-improvements in link tool - (partial FS#4412)

skala
Isaac Flores 16 years ago
parent 65b4893033
commit f822c717a2
  1. 16
      main/link/link.php
  2. 2
      main/link/linkfunctions.php

@ -1,4 +1,4 @@
<?php // $Id: link.php 22201 2009-07-17 19:57:03Z cfasanando $
<?php // $Id: link.php 22248 2009-07-20 16:10:14Z iflorespaz $
/*
==============================================================================
Dokeos - elearning and course management software
@ -333,10 +333,13 @@ if(api_get_setting('search_enabled')=='true') {
echo '</form>';
} elseif(($_GET['action']=="addcategory" or $_GET['action']=="editcategory") and !$submitCategory) {
echo '<div class="row">';
if ($_GET['action']=="addcategory")
{echo '<div class="form_header">'.get_lang('CategoryAdd').'</div>';}
else
{echo '<div class="form_header">'.get_lang('CategoryMod').'</div>';}
if ($_GET['action']=="addcategory") {
echo '<div class="form_header">'.get_lang('CategoryAdd').'</div>';
$my_cat_title=get_lang('CategoryAdd');
} else {
echo '<div class="form_header">'.get_lang('CategoryMod').'</div>';
$my_cat_title=get_lang('CategoryMod');
}
echo "</div>\n\n";
echo "<form method=\"post\" action=\"".api_get_self()."?action=".Security::remove_XSS($_GET['action'])."&amp;urlview=".Security::remove_XSS($urlview)."\">";
if ($_GET['action']=="editcategory")
@ -366,7 +369,7 @@ if(api_get_setting('search_enabled')=='true') {
<div class="label">
</div>
<div class="formw">
<button class="save" type="submit" name="submitCategory">'.get_lang('CreateCategory').' </button>
<button class="save" type="submit" name="submitCategory">'.$my_cat_title.' </button>
</div>
</div>';
@ -398,6 +401,7 @@ if (empty($_GET['action']) || ($_GET['action']!='editlink' && $_GET['action']!='
Action Links
-----------------------------------------------------------
*/
echo '<br/><br/><br/>';
echo '<div class="actions">';
if(is_allowed_to_edit()) {
$urlview = Security::remove_XSS($urlview);

@ -629,7 +629,7 @@ function showcategoryadmintools($categoryid)
global $urlview;
global $aantalcategories;
global $catcounter;
echo '<a href="'.api_get_self().'?'.api_get_cidreq().'&action=editcategory&amp;id='.$categoryid.'&amp;urlview='.$urlview.'" title='.get_lang('Modify').' "><img src="../img/edit.gif" border="0" alt="'.get_lang('Modify').' "/></a>';
echo '<a href="'.api_get_self().'?'.api_get_cidreq().'&action=editcategory&amp;id='.$categoryid.'&amp;urlview='.$urlview.' title='.get_lang('Modify').' "><img src="../img/edit.gif" border="0" alt="'.get_lang('Modify').' "/></a>';
echo "<a href=\"".api_get_self()."?".api_get_cidreq()."&action=deletecategory&amp;id=", $categoryid, "&amp;urlview=$urlview\" onclick=\"javascript:if(!confirm('".get_lang('CategoryDelconfirm')."')) return false;\">", "<img src=\"../img/delete.gif\" border=\"0\" alt=\"", get_lang('Delete'), "\"/>", "</a>";
// DISPLAY MOVE UP COMMAND only if it is not the top link

Loading…
Cancel
Save