-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathnew-list.php
46 lines (41 loc) · 1.58 KB
/
new-list.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<?php include('includes/header.php');?>
<?php include('includes/login/auth.php');?>
<?php include('includes/create/main.php');?>
<!-- Validation -->
<script type="text/javascript" src="<?php echo get_app_info('path');?>/js/validate.js"></script>
<script type="text/javascript">
$(document).ready(function() {
$("#list-form").validate({
rules: {
list_name: {
required: true
}
},
messages: {
list_name: "<?php echo addslashes(_('List name is required'));?>"
}
});
});
</script>
<div class="row-fluid">
<div class="span2">
<?php include('includes/sidebar.php');?>
</div>
<div class="span10">
<div>
<p class="lead"><?php echo get_app_data('app_name');?></p>
</div>
<h2><?php echo _('Add a new list');?></h2><br/>
<form action="<?php echo get_app_info('path')?>/includes/subscribers/import-add.php" method="POST" accept-charset="utf-8" class="form-vertical" enctype="multipart/form-data" id="list-form">
<label class="control-label" for="list_name"><?php echo _('List name');?></label>
<div class="control-group">
<div class="controls">
<input type="text" class="input-xlarge" id="list_name" name="list_name" placeholder="<?php echo _('The name of your new list');?>">
</div>
</div>
<input type="hidden" name="app" value="<?php echo get_app_info('app');?>">
<button type="submit" class="btn btn-inverse"><i class="icon icon-plus"></i> <?php echo _('Add');?></button>
</form>
</div>
</div>
<?php include('includes/footer.php');?>