[Hastymail-cvs] hastymail/html new.php,1.120,1.121
Brought to you by:
sailfrog,
slushpupie
From: <sai...@us...> - 2004-05-26 20:26:21
|
Update of /cvsroot/hastymail/hastymail/html In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18036/html Modified Files: new.php Log Message: only add the additional message controls to the bottom of the new page if there are more than 20 unread messages Index: new.php =================================================================== RCS file: /cvsroot/hastymail/hastymail/html/new.php,v retrieving revision 1.120 retrieving revision 1.121 diff -u -d -r1.120 -r1.121 --- new.php 26 May 2004 20:20:33 -0000 1.120 +++ new.php 26 May 2004 20:26:09 -0000 1.121 @@ -326,8 +326,9 @@ </tr> </table> </td> - </tr> - <tr> + </tr>',"\n"; + if ($total_unseen > 20) { + echo ' <tr> <td> </td> </tr> @@ -337,27 +338,29 @@ '</b> ',$str[125],' </td> <td width="70%" align="right" colspan="2" class="tables2" nowrap>',"\n"; + } } + if ($total_unseen > 20) { /* message action controls */ - echo ' <input class="button3" type="submit" name="toggle_all" ', + echo ' <input class="button3" type="submit" name="toggle_all" ', 'value="',$str[246],'"> <select name="selection_type2" class="select3"> <option class="option3" value="marked">',$str[6],'</option>'; - $fold_tmp = array_keys($data); - $fold_tmp_dsp = hm_folder_dsp($fold_tmp); - foreach ($fold_tmp as $val) { - echo '<option class="option3" value="',$val,'">',$str[51],' ', - $fold_tmp_dsp[$val],' (',$unseen[$val],')</option>',"\n"; - } - echo ' <option class="option3" value="page">',$str[52],'</option> + $fold_tmp = array_keys($data); + $fold_tmp_dsp = hm_folder_dsp($fold_tmp); + foreach ($fold_tmp as $val) { + echo '<option class="option3" value="',$val,'">',$str[51],' ', + $fold_tmp_dsp[$val],' (',$unseen[$val],')</option>',"\n"; + } + echo ' <option class="option3" value="page">',$str[52],'</option> </select> <input type="submit" class="button3" name="read2" value="',$str[2],'"> <input type="submit" class="button3" name="delete2" value="',$str[4],'"> <input type="submit" class="button3" name="copy2" value="',$str[1],'">-<input type="submit" class="button3" name="move2" value="',$str[0],'">-> <select class="select3" name="destination2">',"\n"; - hm_folder_options($dest, false, $simple, false, 'class="option3"'); - echo ' </select> ',"\n"; - + hm_folder_options($dest, false, $simple, false, 'class="option3"'); + echo ' </select> ',"\n"; + } if (!$simple) { echo ' </td> |