[ Index ] |
|
Code source de IMP H3 (4.1.5) |
1 <?php 2 if (!isset($headers_inc_count)) { 3 $headers_inc_count = 0; 4 } else { 5 $headers_inc_count++; 6 } 7 $sortImg = ($sortdir) ? 'za.png' : 'az.png'; 8 $sortText = ($sortdir) ? '\/' : '/\\'; 9 $headers = array( 10 SORTARRIVAL => array( 11 'stext' => _("Sort by Arrival"), 12 'text' => _("#"), 13 'width' => '4%' 14 ), 15 SORTDATE => array( 16 'stext' => _("Sort by Date"), 17 'text' => _("Dat_e"), 18 'width' => '10%' 19 ), 20 SORTTO => array( 21 'stext' => _("Sort by To Address"), 22 'text' => _("To"), 23 'width' => '20%' 24 ), 25 SORTFROM => array( 26 'stext' => _("Sort by From Address"), 27 'text' => _("Fro_m"), 28 'width' => '20%' 29 ), 30 SORTTHREAD => array( 31 'stext' => _("Sort by Thread"), 32 'text' => _("_Thread"), 33 'width' => '52%' 34 ), 35 SORTSUBJECT => array( 36 'stext' => _("Sort by Subject"), 37 'text' => _("Sub_ject"), 38 'width' => '52%' 39 ), 40 SORTSIZE => array( 41 'stext' => _("Sort by Message Size"), 42 'text' => _("Si_ze"), 43 'width' => '6%' 44 ) 45 ); 46 47 /* If this is the Drafts or Sent-Mail Folder, sort by To instead of 48 * From. */ 49 if ($drafts_sm_folder) { 50 unset($headers[SORTFROM]); 51 } else { 52 unset($headers[SORTTO]); 53 } 54 55 /* Determine which of Subject/Thread to emphasize. */ 56 if ($search_mbox) { 57 unset($headers[SORTTHREAD]); 58 } else { 59 $extra = SORTTHREAD; 60 $standard = SORTSUBJECT; 61 if ($thread_sort) { 62 $extra = SORTSUBJECT; 63 $standard = SORTTHREAD; 64 } 65 $headers[$standard]['extra'] = ' <span style="font-size: 10px;">[' . Horde::widget(Util::addParameter($mailbox_url, array('sortby' => $extra, 'actionID' => 'change_sort')), $headers[$extra]['stext'], 'widget" style="font-size: 10px; font-weight: normal;', null, 'if (window.event) window.event.cancelBubble = true; else if (event) event.stopPropagation();', $headers[$extra]['text']) . ']</span>'; 66 unset($headers[$extra]); 67 } 68 ?> 69 <tr class="control"><td colspan="6"> 70 <form method="post" name="messages" action="<?php echo $mailbox_url ?>"> 71 <?php Util::pformInput() ?> 72 <table class="messageList" cellspacing="1"> 73 <tr class="item"> 74 <?php if (!$headers_inc_count): ?> 75 <th onclick="document.messages.checkAll.checked = !document.messages.checkAll.checked; makeSelection(-1);" width="8%"><input type="checkbox" class="checkbox" name="checkAll" onclick="makeSelection(-1); if (window.event) window.event.cancelBubble = true; else if (event) event.stopPropagation();" <?php echo Horde::getAccessKeyAndTitle(_("Check _All/None")) ?> /></th> 76 <?php else: ?> 77 <th> </th> 78 <?php endif; ?> 79 80 <?php foreach ($headers as $key => $val): ?> 81 <th class="<?php echo ($sortby == $key) ? 'selected' : 'item' ?>" width="<?php echo $val['width'] ?>" <?php if (!$sortlimit): ?> onclick="document.location.href='<?php echo addslashes(Util::addParameter(($sortby == $key) ? $sort_url : $mailbox_url, array('sortby' => $key, 'actionID' => 'change_sort'))) ?>';"<?php endif; ?>> 82 <?php if ($sortlimit): ?> 83 <?php echo Horde::stripAccessKey($val['text']) ?> 84 <?php else: ?> 85 <?php if ($sortby == $key): ?> 86 <?php echo Horde::link(Util::addParameter($sort_url, array('sortby' => $key, 'actionID' => 'change_sort')), $val['stext'], null, null, null, $val['stext']) . Horde::img($sortImg, $sortText, '', $registry->getImageDir('horde')) ?></a> 87 <?php endif; ?> 88 <?php echo Horde::widget(Util::addParameter(($sortby == $key) ? $sort_url : $mailbox_url, array('sortby' => $key, 'actionID' => 'change_sort')), $val['stext'], 'widget', null, null, $val['text']) ?> 89 <?php if (isset($val['extra'])) echo $val['extra']; ?> 90 <?php endif; ?> 91 </th> 92 <?php endforeach; ?> 93 </tr>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Thu Nov 29 12:30:07 2007 | par Balluche grâce à PHPXref 0.7 |
![]() |