0

我无法使用来自 highslide 的表单创建 jquery iframe。请在http://www.highslide.com上查看该网站,然后转到您看到灰色背景框的页面,其中显示“Iframe with form”。

我正在尝试使用 mysql 创建更新配置文件,而不是重定向到其他页面来更新配置文件,我想将 jquery iframe 与来自 highslide 的表单一起使用,但是我无法将我的代码与 highslide 代码结合起来。

请查看代码,这允许我通过“编辑”和“删除”两个链接从 mysql 数据库中检索公司信息。当重定向到其他页面以更改公司名称时,这非常有用。

但是我想使用 iframe highslide 更改为在同一页面中更新,我遇到问题的代码正在尝试合并,但我遇到了错误。

<?php 

// This block grabs the whole list of company for viewing
$company_list = "";
$sql = mysql_query("SELECT * FROM company ORDER BY company_id DESC");
$productCount = mysql_num_rows($sql); // count the output amount
if ($productCount > 0) {
    while($row = mysql_fetch_array($sql)){ 
             $company_id = $row["company_id"];
             $company_name = $row["company_name"];
             $company_url = $row["company_url"];
              $company_username = $row["company_username"];
              $company_password = $row["company_password"];
             $company_list .= "Company ID: $company_id - <strong>$company_name</strong> - $company_url - &nbsp; &nbsp; &nbsp; <a href='edit_company.php?pid=$company_id'>edit</a> &bull; <a href='company.php?deleteid=$company_id'>delete</a><br /><br />";


    }
} else {
    $company_list = "You have no company listed in your data yet";
}
?>

这个 highslide 代码链接允许我单击该链接并提示 iframe 灯箱。就像您从http://www.highslide.com看到的现场样本一样

<div class="textwrapper">
    <a href="iframe.php" id="formexample" class="highslide" onclick="return hs.htmlExpand( this, {
        objectType: 'iframe', outlineType: 'rounded-white', wrapperClassName: 'highslide-wrapper drag-header',
        outlineWhileAnimating: true, preserveContent: false, width: 250 } )">Iframe with form</a>
</div>

有谁可以帮助我如何制作作品来组合它,我试过了,但仍然出现错误。

     $company_list .= " <a href="edit_company.php?pid=$company_id" id="formexample" class="highslide" onclick="return hs.htmlExpand( this, {
objectType: 'iframe', outlineType: 'rounded-white', wrapperClassName: 'highslide-wrapper drag-header',
outlineWhileAnimating: true, preserveContent: false, width: 250 } )">Edit</a> &bull;             
      <a href='company.php?deleteid=$company_id'>delete</a><br /><br />";
4

0 回答 0