<tr>
                    <th class="first">#</th>
                    <th>Title</th>
                    <th>File Upload</th>
                    <th class="button-column last">Action</th>
                </tr>
            </thead>
            <tbody>
                <?php 
if (isset($_GET['id'])) {
    $transaction_id = $_GET['id'];
}
if (isset($_GET['type'])) {
    $type = $_GET['type'];
}
$list_PropertyDocument = ProTransactionsPropertyDocument::getListDocumentByTransaction($transaction_id);
if ($list_PropertyDocument) {
    $model_PropertyDocument = $list_PropertyDocument;
} else {
    $model_PropertyDocument = ProTransactionsPropertyDocument::getDefaultArrayForCreate($type);
}
foreach ($model_PropertyDocument as $key => $item) {
    ?>
                    <?php 
    $display_none = 'display_none';
    $display_none_title = '';
    $delete_class = 'delete_item_file';
    if ($key > 2) {
        $display_none = '';
        $display_none_title = 'display_none';
        $delete_class = 'delete_item_upload';