Produced by Araxis Merge on 8/16/2019 12:02:04 PM Eastern Daylight Time. See www.araxis.com for information about Merge. This report uses XHTML and CSS2, and is best viewed with a modern standards-compliant browser. For optimum results when printing this report, use landscape orientation and enable printing of background images and colours in your browser.
| # | Location | File | Last Modified |
|---|---|---|---|
| 1 | Direct_DSM.zip\Direct_DSM\webmail\application\views\inbox | view.php | Tue Aug 13 17:30:38 2019 UTC |
| 2 | Direct_DSM.zip\Direct_DSM\webmail\application\views\inbox | view.php | Wed Aug 14 12:42:01 2019 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 2 | 386 |
| Changed | 1 | 2 |
| Inserted | 0 | 0 |
| Removed | 0 | 0 |
| Whitespace | |
|---|---|
| Character case | Differences in character case are significant |
| Line endings | Differences in line endings (CR and LF characters) are ignored |
| CR/LF characters | Not shown in the comparison detail |
No regular expressions were active.
| 1 | <?php | |
| 2 | /** | |
| 3 | * Markup t o view any message t hat is not a draft. | |
| 4 | * | |
| 5 | * Note tha t this vie w is inten ded to be used withi n the larg er context of inbox/ {@link tem plate.php} , in conju nction wit h the | |
| 6 | * {@link _ view_menu} partial. | |
| 7 | * | |
| 8 | * <code> | |
| 9 | * $this->t emplate->s et('menu_p artial', ' _view_menu '); | |
| 10 | * $this->t emplate->l oad('templ ate', 'inb ox/view', $data); | |
| 11 | * </code> | |
| 12 | * | |
| 13 | * @package direct-pr oject-inno vation-ini tiative | |
| 14 | * @subpack age views | |
| 15 | * @filesou rce | |
| 16 | */ | |
| 17 | ||
| 18 | $CI = get_ instance() ; | |
| 19 | ||
| 20 | // se nt message s include icons to i ndicate de livery sta tus; let's format th em before we display the marku p to keep the markup as clear as possibl e | |
| 21 | // th is will re sult in a $to and a $cc addres s | |
| 22 | ||
| 23 | foreach(ar ray('to', 'cc') as $ recipient_ type) { | |
| 24 | if (!$messag e->sent) { | |
| 25 | $$re cipient_ty pe = array _map('html entities', $message- >addresses _for_displ ay($recipi ent_type)) ; | |
| 26 | } else { | |
| 27 | $$re cipient_ty pe = array (); | |
| 28 | fore ach ($mess age->addre sses_for_d isplay($re cipient_ty pe) as $ad dress) { | |
| 29 | $marku p = '<a st yle="text- decoration :none; col or:#000000 ">' . html entities($ address) . '</a>'; | |
| 30 | $marku p .= '<img src="/ima ges/email_ icons/' . make_strin g_css_frie ndly($mess age->deliv ery_status ($address) ) . '.png" title="' . $message ->delivery _status($a ddress) . '" alt="'. $message-> delivery_s tatus($add ress).' Ic on">'; | |
| 31 | array_ push($$rec ipient_typ e, $markup ); | |
| 32 | } | |
| 33 | } | |
| 34 | } | |
| 35 | ||
| 36 | $security_ token = $t his->secur ity->get_c srf_token_ name().'=' .$this->se curity->ge t_csrf_has h(); | |
| 37 | ||
| 38 | ?> | |
| 39 | <input sty le="displa y:none;" i d="current _user" val ue="<?php if (isset( $status_en abled)) { echo $user ->id; }?>" /> | |
| 40 | <input sty le="displa y:none;" i d="display _name" val ue="<?php if (isset( $status_en abled)) { echo $user ->cn; }?>" /> | |
| 41 | <div id="m sg_header" > | |
| 42 | <d iv class=" subject" t itle="<?ph p echo $me ssage->sub ject_for_d isplay(); ?>"> | |
| 43 | <?ph p if(isset ($status_e nabled) && $status_e nabled) ec ho $this-> load->view ('inbox/_a ssignment_ link', com pact('user ', 'messag e', 'workf low_item') , TRUE); ? > | |
| 44 | <?ph p echo $me ssage->sub ject_for_d isplay(); ?> | |
| 45 | <?ph p if($mess age->impor tance != ' normal'): ?> | |
| 46 | <br /> | |
| 47 | <span class="msg _priority" >This mess age was se nt with <? php echo u cfirst($me ssage->imp ortance) ? > importan ce.</span> | |
| 48 | <?ph p endif ?> | |
| 49 | </ div> | |
| 50 | <d iv id="msg _subheader "> | |
| 51 | ||
| 52 | <d iv class=" date"><?ph p echo $me ssage->tim estamp_for _display() ?></div> | |
| 53 | <div class="ad dresses"> | |
| 54 | <div c lass="addr ess-item"> <strong>Fr om</strong >: <?php e cho implod e(', ', ar ray_map('h tmlentitie s', $messa ge->addres ses_for_di splay('sen der'))); ? ></div> | |
| 55 | <div cla ss="addres s-item"><s trong>To</ strong>: < ?php if($t o == array (ALL_USERS _MOCK_ADDR ESS)) echo 'All VA D irect User s'; else e cho implod e(', ', $ to); ?></d iv> | |
| 56 | <?php if (!$message ->property _is_empty( 'cc')): ?> | |
| 57 | <div class ="address- item"><str ong>CC</st rong>: <?p hp echo im plode(', ' , $cc) ?> </div> | |
| 58 | <?php en dif ?> | |
| 59 | <?php /* if($pscc ! = null){ | |
| 60 | if ($pscc != ""){ | |
| 61 | ?> | |
| 62 | <div class ="address- item"><str ong>Provid er Search< /strong>: <?php echo $pscc ?>< /div> | |
| 63 | <?php | |
| 64 | } | |
| 65 | } */ | |
| 66 | ?> | |
| 67 | ||
| 68 | ||
| 69 | </div> | |
| 70 | ||
| 71 | <?php if($messag e->has_att achments() ): ?> | |
| 72 | <div c lass="atta chments"> | |
| 73 | <strong> Attachment s</strong> : <br /> | |
| 74 | <input t ype="hidde n" name="m sg_id" val ue="<?php echo $mess age->id ?> " /> | |
| 75 | <table i d="attachm ents-list" > | |
| 76 | <tbody > | |
| 77 | <t r> | |
| 78 | <? php $i = 0 ; foreach( $message-> attachment _files as $attachmen t): ?> | |
| 79 | <td class="<?p hp echo $a ttachment- >extension ?> <?php if($attach ment->prop erty_exist s('schema' )) echo $a ttachment- >schema ?> " | |
| 80 | <?php if(is_a($a ttachment, 'Patient_ document_a ttachment' )):?>style ="width: 2 0%;vertica l-align: t op;"<?php endif ?>> | |
| 81 | <?ph p if($atta chment->pr operty_exi sts('child _patient_d ocuments') && !$atta chment->pr operty_is_ empty('chi ld_patient _documents ')): ?> | |
| 82 | <a hre f="#" clas s="zip-exp and-icon z ip-name ex panded" da ta-attachm ent-index= "<?php ech o $i;?>" t itle="Open Attachmen t Link" ar ia-label=" Open Attac hment Link "><?php ec ho $attach ment->name ;?></a> | |
| 83 | <a hre f="#" titl e="Click t o collapse clinical document c ontent fro m zip arch ive" class ="zip-expa nd-icon ex panded" da ta-attachm ent-index= "<?php ech o $i;?>">& #x25BC;</a > | |
| 84 | <?ph p else: ?> | |
| 85 | <?php if($attach ment->exte nsion == ' pdf' || $a ttachment- >extension == 'xml') : ?> | |
| 86 | <!-- I f it's a P DF or XML, open in n ew tab --> | |
| 87 | <?php ec ho $attach ment->link ($attachme nt->name.' (Opens in new tab)' , array('t arget' => '_blank') );?> | |
| 88 | <?php else:?> | |
| 89 | <!-- N othing fan cy, just p ut the lin k --> | |
| 90 | <?php echo $atta chment->li nk(); ?><? php endif? > | |
| 91 | <?ph p endif ?> | |
| 92 | (<?php echo byte _format($a ttachment- >bytes); ? >) | |
| 93 | <?ph p if(is_a( $attachmen t, 'Zip_at tachment') ): ?> | |
| 94 | (<?php echo $att achment->l ink('Downl oad');?>) | |
| 95 | <?php if ($attachme nt->proper ty_exists( 'is_xdm') && $attach ment->is_x dm == 2):? > | |
| 96 | <br><span style="col or:#821;"> The XDM.zi p file cou ld not be opened. Pl ease conta ct <a href =" PII "> PII </a> for m ore inform ation. | |
| 97 | </sp an> | |
| 98 | </sp an> | |
| 99 | <?php en dif ?> | |
| 100 | <?ph p endif ?> | |
| 101 | <? php if(is_ a($attachm ent, 'Pati ent_docume nt_attachm ent')):?> | |
| 102 | </ td> | |
| 103 | <td class="no" style="wi dth: 50px; vertical-a lign: top; "> | |
| 104 | <?php echo $CI-> load->view ('inbox/me ssage/_pat ient_docum ent_menu', compact(' attachment ', 'i'), T RUE) ?> | |
| 105 | </td > | |
| 106 | <td class="no info" styl e="vertica l-align: t op;"><?php echo $thi s->load->v iew('inbox /message/_ patient_pr eview', co mpact('att achment'), TRUE) ?>< /td> | |
| 107 | <td class="no" > | |
| 108 | <span class="c32 name" styl e="vertica l-align: t op;">(<?ph p echo $at tachment-> descriptio n ?>)</spa n> | |
| 109 | <?php endif ?> | |
| 110 | <? php if($at tachment-> property_e xists('chi ld_patient _documents ') && !$at tachment-> property_i s_empty('c hild_patie nt_documen ts')): ?> | |
| 111 | <ul id="zip_co ntents<?ph p echo $i; ?>" class ="zip-file -list"> | |
| 112 | <?ph p foreach( $attachmen t->child_p atient_doc uments as $key => $c hild_patie nt_documen t): ?> | |
| 113 | <li cl ass="<?php echo $chi ld_patient _document- >extension ; ?>"> | |
| 114 | <?php ec ho $child_ patient_do cument->li nk(null, a rray('data -zip-name' => $attac hment->nam e, 'data-z ip-index' => $child_ patient_do cument->in dex_in_par ent)); ?> | |
| 115 | <?php | |
| 116 | echo $CI ->load->vi ew('inbox/ message/_p atient_doc ument_menu ', array(' attachment ' => $chil d_patient_ document, 'i' => $i) , TRUE); | |
| 117 | ?> | |
| 118 | <?php if ($child_pa tient_docu ment->prop erty_exist s('descrip tion') && !$child_pa tient_docu ment->prop erty_is_em pty('descr iption')) { ?> | |
| 119 | <span cl ass="c32na me"> (<?ph p echo $ch ild_patien t_document ->descript ion?>)</sp an> | |
| 120 | <?php } ?> | |
| 121 | </li> | |
| 122 | <?ph p endforea ch ?> | |
| 123 | </ul > | |
| 124 | <? php endif ?> | |
| 125 | <? php | |
| 126 | if (!is_a($a ttachment, 'Patient_ document_a ttachment' ) && is_a( $attachmen t, 'Image_ attachment ')) { | |
| 127 | echo $CI->load ->view('in box/messag e/_image_a ttachment_ menu', com pact('atta chment', ' i'), TRUE) ; | |
| 128 | } | |
| 129 | ?> | |
| 130 | </ td> | |
| 131 | </tr> | |
| 132 | <?ph p $i++; ?> | |
| 133 | <?ph p endforea ch ?> | |
| 134 | </tbody> | |
| 135 | </tabl e> | |
| 136 | </di v> | |
| 137 | <? php endif ?> | |
| 138 | </ div> | |
| 139 | </div> | |
| 140 | <div id="m sg_body">< ?php echo $message-> body_for_d isplay ?>< /div> | |
| 141 | <script> | |
| 142 | $( function ( ) { | |
| 143 | $('[ data-toggl e="popover "]').popov er() | |
| 144 | ||
| 145 | $('# msg_body a ').each(fu nction(){ | |
| 146 | var target = $(this) .attr('tar get'); | |
| 147 | if (!targe t) { | |
| 148 | $(this). attr('targ et','_blan k'); | |
| 149 | } | |
| 150 | }); | |
| 151 | ||
| 152 | // 5 08 complia nce | |
| 153 | $(do cument).on ('click.dr opdown', ' [data-drop down]', mo veFocusToA ctionMenu) ; | |
| 154 | func tion moveF ocusToActi onMenu(e) { | |
| 155 | var ac tions_butt on = e.tar get; | |
| 156 | var dr opdown_sel ector = ac tions_butt on.getAttr ibute('dat a-dropdown '); | |
| 157 | var $d ropdown_me nu = $(dro pdown_sele ctor); | |
| 158 | var $f irstEl = $ dropdown_m enu.find(' li > a').f irst(); | |
| 159 | var $l astEl = $d ropdown_me nu.find('l i > a').la st(); | |
| 160 | $first El.focus() ; | |
| 161 | $dropd own_menu.o n('keydown ', _trapFo cusFor508) ; | |
| 162 | ||
| 163 | functi on _trapFo cusFor508( e) { | |
| 164 | var TAB_ KEY = 9; | |
| 165 | var ESC_ KEY = 27; | |
| 166 | var keyP ressed = e .which || e.keyCode; | |
| 167 | ||
| 168 | // Esc | |
| 169 | if (keyP ressed === ESC_KEY) { | |
| 170 | $dropdown_ menu.off(' keydown', _trapFocus For508); | |
| 171 | $.fn.dropd own('hide' ); | |
| 172 | actions_bu tton.focus (); | |
| 173 | } | |
| 174 | ||
| 175 | // Forwa rd | |
| 176 | if (keyP ressed === TAB_KEY & & !e.shift Key) { | |
| 177 | if (e.targ et === $la stEl[0]) { | |
| 178 | e. preventDef ault(); | |
| 179 | $f irstEl.foc us(); | |
| 180 | } | |
| 181 | } | |
| 182 | ||
| 183 | // Backw ard | |
| 184 | if (keyP ressed === TAB_KEY & & e.shiftK ey) { | |
| 185 | if (e.targ et === $fi rstEl[0]) { | |
| 186 | e. preventDef ault(); | |
| 187 | $l astEl.focu s(); | |
| 188 | } | |
| 189 | } | |
| 190 | } | |
| 191 | } | |
| 192 | }) ; | |
| 193 | ||
| 194 | </script> |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.