echo $site;
?>
" />
            <input type="hidden" name="id" value="<?php 
echo $stage->id;
?>
" />
            <input type="hidden" name="parent_id" value="0" />
            <input type="hidden" name="msg_id" value="0" />
            <input type="hidden" name="action" value="msg-add" />
        </td>
    </tr>
</table>
</form>
<?php 
echo attachedfiles::getFormTemplate('attachedfiles_comment', 'sbr', array('maxfiles' => sbr::MAX_FILES, 'maxsize' => sbr::MAX_FILE_SIZE));
?>

<script type="text/javascript">

window.addEvent("domready", function () {

    var stageCommentAttachedfiles = new attachedFiles2( $('form-comment').getElement('.attachedfiles_comment'), {
        'hiddenName':   'attaches[]',
        'files':        <?php 
echo json_encode($comment_files);
?>
,
        'selectors': {'template' : '.attachedfiles_comment-tpl'}
    });
    });
Example #2
0
            <input type="hidden" name="site" value="<?php 
    echo $site;
    ?>
" />
            <input type="hidden" name="action" value="arbitration" />
        </div>
        <div class="b-shadow__tl"></div>
        <div class="b-shadow__tr"></div>
        <div class="b-shadow__bl"></div>
        <div class="b-shadow__br"></div>
        <div class="b-shadow__icon b-shadow__icon_close" onclick="toggle_arb();"></div>
    </form>
</div> 
</div>   
<?php 
    echo attachedfiles::getFormTemplate('attachedfiles_arb', 'sbr', array('maxsize' => sbr::MAX_FILE_SIZE, 'maxfiles' => sbr::MAX_FILES, 'graph_hint' => false));
    ?>
<script type="text/javascript">
window.addEvent("domready", function () {
    new attachedFiles2( $('arbitrageFrm').getElement('.attachedfiles_arb'), {
        'hiddenName':   'attaches[]',
        'files':        <?php 
    echo json_encode($attachedfiles_files_arb);
    ?>
    }, '<?php 
    echo $attachedfiles_arb->session[0];
    ?>
');
    });
</script>
<?php 
Example #3
0
                    </div>
                </td>
            </tr>
        </tbody>
    </table>
</div>	

<span id="popup_admin_files_edit"></span>

<?php 
    $doc = null;
    include $_SERVER['DOCUMENT_ROOT'] . '/sbr/admin/tpl.popup-doc.php';
    ?>
        
<?php 
    echo attachedfiles::getFormTemplate('attachedfiles_admin_sbr', 'sbr', array('maxfiles' => 1, 'no_description' => true, 'maxsize' => sbr::MAX_FILE_SIZE));
    ?>
<script type="text/javascript">
    new attachedFiles2( $('popup_admin_files').getElement('.attachedfiles_admin_sbr'), {
        'hiddenName':   'attaches[]',
        'files':        <?php 
    echo json_encode($comment_files);
    ?>
,
        'selectors': {'template' : '.attachedfiles_admin_sbr-tpl'}
    });
</script>
<?php 
} else {
    ?>
<table class="b-layout__table" cellpadding="0" cellspacing="0" border="0">