1

我有一个自动 FTP 报告给服务器供我的客户查看的软件。我试图找出一种简单的方法来为我的 Joomla 用户合并这些报告。

所以这是我迄今为止认为最简单的。

报告样本:此处的报告 样本

该软件会生成链接,然后我通常会通过电子邮件将它们发送出去。因此,我正在考虑在每个客户端下的 Admin > User Manager 中添加另一个字段以过去网址。

在前端使用文章中的 Jumi(它允许 PHP 和 Java)。

使用 Joomla Wrapper 的代码 iFrame 报告 Web 地址并使 src 动态化。所以它从数据库中提取网址。

<script type="text/javascript">
function iFrameHeight() {
var h = 0;
if (!document.all) {
    h = document.getElementById('blockrandom').contentDocument.height;
    document.getElementById('blockrandom').style.height = h + 60 + 'px';
} else if (document.all) {
    h = document.frames('blockrandom').document.body.scrollHeight;
    document.all.blockrandom.style.height = h + 20 + 'px';
}
}
</script>

<iframe onload="iFrameHeight()" id="blockrandom" name="iframe" src="http://www.garranteedsolutions.com/reports/progress.php?id=p-25951946357-508786" width="100%" height="1000" scrolling="no" class="wrapper">
This option will not work correctly. Unfortunately, your browser does not support inline frames.</iframe>

我在数据库中添加了一个名为“门户”的附加列

您如何编写 php 代码来填充已登录用户的“门户”列中的网址,以便他们只看到他们的报告?

4

0 回答 0