✏️ 正在编辑: anexos.phtml
路径:
/srv/systems_dir/yuppiecred/application/views/scripts/contrato/anexos.phtml
提示:
您可以编辑任何文件(包括二进制文件),但请注意不当修改可能导致文件损坏。
<?php if(Zend_Controller_Front::getInstance()->getRequest()->getActionName() != 'view') echo $this->formContratoAnexo; ?> <div class="clear"></div> <table> <thead> <tr class="top_list"> <th width="120">Data Cadastro</th> <th>Tipo</th> <th width="30"></th> <th width="30"></th> </tr> </thead> <?php foreach ( $this->documentos as $documento ): $info = pathinfo($documento['arquivo']); ?> <?php $anexoUrl = $this->baseUrl() . "/uploads/" . $info['basename']; if (strstr($documento['arquivo'], "amazonaws.com")) { $anexoUrl = $this->baseUrl () . "/contrato-anexo/view/?anexo_url=" . $info['basename']; } ?> <?php if($documento['tipo_id'] != $this->outroAnexoId):?> <tr> <td><?php echo $this->dateHourFormat($documento['data_cadastro']); ?></td> <td><?php echo $documento['tipo']?></td> <td align="center"> <a style="text-decoration: none;" href="#" class="glyphicon-reg glyphicon-reg-picture" onclick="window.open('<?php echo $anexoUrl; ?>');" title="Visualizar <?php echo $documento['tipo']?>"></a> </td> <td align="center"><a href="<?php echo $this->url(array( 'action' => 'delete-documento', 'id' => $documento['id'], 'contrato_id' => $documento['contrato_id'], 'tab' => 3 )) ?>" class="link_remove"></a></td> </tr> <?php endif;?> <?php endforeach; ?> </table>
💾 保存文件
← 返回文件管理器