当前位置: 首页>>代码示例>>PHP>>正文


PHP Kit::deleteKit方法代码示例

本文整理汇总了PHP中Kit::deleteKit方法的典型用法代码示例。如果您正苦于以下问题:PHP Kit::deleteKit方法的具体用法?PHP Kit::deleteKit怎么用?PHP Kit::deleteKit使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Kit的用法示例。


在下文中一共展示了Kit::deleteKit方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: max

                    array_push($channelArr, $channel);
                }
                $maxChannels = max($channelArr);
                if ($maxChannels > 1) {
                    foreach ($channelArr as $key => $val) {
                        if ($val == 1) {
                            $fileName = $downloadDir . $kitId . '/' . $key . ".ogg";
                            exec("sox " . $fileName . " " . $fileName . " remix 1 1");
                        }
                    }
                }
            }
        }
    }
}
if ($_GET) {
    $deleteId = $_GET['delete'];
    $kitAPI->deleteKit($deleteId);
    header('Location: .');
}
$systemKits = $kitAPI->getKits();
$tableStr = "<table>";
foreach ($systemKits as $systemKit) {
    $tableStr .= "\n            <tr>\n                <td width='80%'><span class='clsTableText'>" . $systemKit['name'] . "</span></td>\n                <td width='10%'><a href='edit/?id=" . $systemKit['id'] . "'><span class='smallLink'>[edit]</span></a></td>\n                <td width='10%'><a href='#' onclick='deleteKit(" . $systemKit['id'] . "); return false;'><span class='smallLink'>[delete]</span></a></td>\n            </tr>";
}
$tableStr .= "</table>";
$data['title'] = APP_NAME . " Admin";
$data['headerTitle'] = APP_NAME . " - Admin";
$data['menu'] = "divSystemKits";
$data['content'] = "\n        <script type='text/javascript'>\n            function deleteKit(id) {\n                var c = confirm('Are you sure you want to delete this kit?  This can\\'t be undone!');\n                if(c) {\n                    window.location='?delete=' + id;\n                }\n            }\n        </script>\n        <div class='contentBlock'>\n            <div class='contentBlockHeader'>Create Kit</div>\n            <div class='contentBlockBody'>\n                <span class='{$newKitSuccess}'>" . $newKitStatus['mesg'] . "</span>\n                <form method='post' action=''>\n                    <input type='hidden' name='action' value='newKit' />\n                    <input type='text' name='newKitName' />\n                    <input type='submit' value='Create' />\n                </form>\n            </div>\n        </div>\n        <div class='contentBlock'>\n            <div class='contentBlockHeader'>Kits</div>\n            <div class='contentBlockBody'>{$tableStr}</div>\n        </div>\n        <div class='contentBlock'>\n            <div class='contentBlockHeader'>Synchronize Kits</div>\n            <div class='contentBlockBody'>\n                <form method='post' action=''>\n                    <input type='hidden' name='action' value='syncKits' />\n                    <input type='submit' value='Sync Now' />\n                </form>\n            </div>\n        </div>\n    ";
$template->render($data);
开发者ID:htmiguel,项目名称:beat-slappr,代码行数:31,代码来源:index.php


注:本文中的Kit::deleteKit方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。