コード例 #1
0
 public function getDownloadUrl()
 {
     $url = CopixURL::get('malle|default|doDownloadFile', array('id' => $this->malle, 'file' => $this->id));
     return $url;
 }
コード例 #2
0
/*
    @file 		scripts.php
    @desc		JS scripts loader [adding JQuery support and events watchers]
    @version 	1.0.0b
    @date 		2010-05-28 09:28:09 +0200 (Fri, 28 May 2010)
    @author 	S.HOLTZ <*****@*****.**>

    Copyright (c) 2010 CAP-TIC <http://www.cap-tic.fr>
*/
?>
<script type="text/javascript">var urlBase = '<?php 
echo CopixUrl::getRequestedScriptPath();
?>
'; getRessourcePathImg = urlBase+'<?php 
echo CopixURL::getResourcePath('img/');
?>
/';</script>
<script type="text/javascript" src="<?php 
echo CopixUrl::getResource("js/jquery/jquery.tools.min.js");
?>
"></script>
<script type="text/javascript" src="<?php 
echo CopixUrl::getResource("js/iconito/iconito.js");
?>
"></script>

<script type="text/javascript" src="<?php 
echo CopixUrl::getResource("js/iconito/lang_" . CopixI18N::getLang() . ".js");
?>
"></script>
コード例 #3
0
_etag('i18n', 'install.database.test');
?>
" />
<?php 
if ($ppo->valid) {
    ?>
<input type="submit" id="record" name="btn"
    value="<?php 
    _etag('i18n', 'install.database.save');
    ?>
" />
<?php 
}
?>
</form>
<a href="<?php 
echo CopixURL::get("admin||");
?>
"> <input type="button" value="<?php 
_eTag('i18n', "copix:common.buttons.back");
?>
" /></a>

<?php 
_etag('copixtips', array('warning' => $ppo->importantTips, 'tips' => $ppo->tips, 'titlei18n' => 'install.tips.title'));
?>

<?php 
_eTag('mootools');
$jsCode = "\n\nwindow.addEvent('domready', function () {\n    \$\$('.bdd input,.bdd select').each(function (el) {\n        el.addEvent('change',function () {\n            \$('record').setStyle('display','none');\n        });\n    });\n});\n\n";
CopixHTMLHeader::addJSCode($jsCode);
コード例 #4
0
 /**
  * Retourne le lien de téléchargement du fichier
  *
  * @return string Lien de téléchargement
  */
 public function getDownloadUrl()
 {
     $url = CopixURL::get('classeur||telechargerFichier', array('classeurId' => $this->classeur_id, 'fichierId' => $this->id));
     return $url;
 }