本文整理汇总了PHP中ProductDownload::getHtmlLink方法的典型用法代码示例。如果您正苦于以下问题:PHP ProductDownload::getHtmlLink方法的具体用法?PHP ProductDownload::getHtmlLink怎么用?PHP ProductDownload::getHtmlLink使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ProductDownload
的用法示例。
在下文中一共展示了ProductDownload::getHtmlLink方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: displayFormInformations
//.........这里部分代码省略.........
if (!strval(Tools::getValue('virtual_product_filename'))) {
?>
<label id="virtual_product_file_label" for="virtual_product_file" class="t"><?php
echo $this->l('Upload a file');
?>
</label>
<input type="file" id="virtual_product_file" name="virtual_product_file" value="" class="" onchange="uploadFile()" maxlength="<?php
echo $this->maxFileSize;
?>
" />
<?php
}
?>
<div id="upload-confirmation">
<?php
if ($up_filename = strval(Tools::getValue('virtual_product_filename'))) {
?>
<input type="hidden" id="virtual_product_filename" name="virtual_product_filename" value="<?php
echo $up_filename;
?>
" />
<?php
}
?>
</div>
<?php
} else {
?>
<input type="hidden" id="virtual_product_filename" name="virtual_product_filename" value="<?php
echo $productDownload->physically_filename;
?>
" />
<?php
echo $this->l('This is the link') . ': ' . $productDownload->getHtmlLink(false, true);
?>
<a href="confirm.php?height=200&width=300&modal=true&referer=<?php
echo rawurlencode($_SERVER['REQUEST_URI'] . '&deleteVirtualProduct=true');
?>
" class="thickbox red" title="<?php
echo $this->l('Delete this file');
?>
"><?php
echo $this->l('Delete this file');
?>
</a>
<?php
}
// check if file exists
?>
</p>
<p class="block">
<label for="virtual_product_name" class="t"><?php
echo $this->l('Filename');
?>
</label>
<input type="text" id="virtual_product_name" name="virtual_product_name" class="" value="<?php
echo $productDownload->id > 0 ? $productDownload->display_filename : htmlentities(Tools::getValue('virtual_product_name'), ENT_COMPAT, 'UTF-8');
?>
" />
<span class="hint" name="help_box" style="display:none;"><?php
echo $this->l('The complete filename with its extension (e.g., Our best song.mp3)');
?>
</span>
</p>
<p class="block">
<label for="virtual_product_nb_downloable" class="t"><?php
示例2: displayFormInformations
//.........这里部分代码省略.........
<?php
}
?>
<div id="upload-confirmation">
<?php
if ($up_filename = strval(Tools::getValue('virtual_product_filename'))) {
?>
<input type="hidden" id="virtual_product_filename" name="virtual_product_filename" value="<?php
echo $up_filename;
?>
" />
<?php
}
?>
</div>
<a id="delete_downloadable_product" style="display:none;" href="confirm.php?height=200&width=300&modal=true&referer=<?php
echo rawurlencode($_SERVER['REQUEST_URI'] . '&deleteVirtualProduct=true');
?>
" class="thickbox red" title="<?php
echo $this->l('Delete this file');
?>
"><?php
echo $this->l('Delete this file');
?>
</a>
<?php
} else {
?>
<input type="hidden" id="virtual_product_filename" name="virtual_product_filename" value="<?php
echo $productDownload->physically_filename;
?>
" />
<?php
echo $this->l('This is the link') . ': ' . $productDownload->getHtmlLink(false, true);
?>
<a href="confirm.php?height=200&width=300&modal=true&referer=<?php
echo rawurlencode($_SERVER['REQUEST_URI'] . '&deleteVirtualProduct=true');
?>
" class="thickbox red" title="<?php
echo $this->l('Delete this file');
?>
"><?php
echo $this->l('Delete this file');
?>
</a>
<?php
}
// check if file exists
?>
</p>
<p class="block">
<label for="virtual_product_name" class="t"><?php
echo $this->l('Filename');
?>
</label>
<input type="text" id="virtual_product_name" name="virtual_product_name" style="width:200px" value="<?php
echo $productDownload->id > 0 ? $productDownload->display_filename : htmlentities(Tools::getValue('virtual_product_name'), ENT_COMPAT, 'UTF-8');
?>
" />
<span class="hint" name="help_box" style="display:none;"><?php
echo $this->l('The full filename with its extension (e.g., Book.pdf)');
?>
</span>
</p>
</div>