1
<h2>Create a New Indexing Profile</h2>
3
echo $form->create('Profile');
8
<dd><?php echo $form->input('name',array('label'=> false))?></dd>
13
<?php echo $form->input('url',array('label'=> false))?>
14
<em>The URL to the document root of your website.</em>
18
<dt>Regular Expression</dt>
20
<?php echo $form->input('regex',array('label'=>false,'disabled' => 'disabled',))?>
21
<em>This field is currently automatically generated.</em>
26
echo $form->end(array(
30
'label' => 'Create Profile'
34
<b>You must index the new Profile before it will appear in the search results.</b>
36
<script type="text/javascript">
37
$("#ProfileUrl").change(function () {
38
var value = $(this).val();
40
var a = document.createElement('a');
44
$("#ProfileRegex").val(a.hostname);
47
$("#ProfileAdminCreateForm").submit(function () {
48
$("#ProfileUrl").change();
49
$("#ProfileRegex").attr("disabled","");
b'\\ No newline at end of file'