Jak zmienić buttony na listę rozwijaną select?
Fragment messages.php:
Zamienić to -> if ($_GET['folder'] == "inbox") { echo "<input type='submit' name='save_msg' value='".$locale['412']."'>\n"; }
if ($_GET['folder'] == "archive") { echo "<input type='submit' name='unsave_msg' value='".$locale['413']."'/>\n"; }
echo "<input type='submit' name='read_msg' value='".$locale['414']."' class='button' />\n";
echo "<input type='submit' name='unread_msg' value='".$locale['415']."' class='button' />\n";
echo "<input type='submit' name='delete_msg' value='".$locale['416']."' class='button' />\n";
echo "</td></tr><tr><td>
zamienić na to -> <select name='?' onchange='this.form.submit()'>
<option value='Czynności'>Czynności</option> ";
if ($_GET['folder'] == "inbox") { echo "<option value='save_msg'>".$locale['412']."</option>\n"; }
if ($_GET['folder'] == "archive") { echo " <option value='unsave_msg'>".$locale['413']."</option> \n"; }
echo"<option value='read_msg'>".$locale['414']."</option>
<option value='unread_msg'>".$locale['415']."</option>
<option value='delete_msg'>".$locale['416']."</option>
</select>";
Podpowie ktoś jakie "name" odpowiada za funkcje: save_msg, unsave_msg, read_msg, unread_msg, delete_msg.
Edytowane przez Pieka dnia 14.05.2009 22:02:48
|