Changeset 5892
- Timestamp:
- 07/03/08 05:49:34 (3 months ago)
- Files:
-
- modules/branches/2.5/phonebook/functions.inc.php (modified) (2 diffs)
- modules/branches/2.5/phonebook/page.phonebook.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
modules/branches/2.5/phonebook/functions.inc.php
r2881 r5892 81 81 // Should we really automatically generate a speeddial ? 82 82 // If yes I think we should start from 99 going down and leave easier speeddials to users 83 if (empty($speeddial)) { 83 if (isset($_POST['needsd'])){ 84 if (empty($speeddial)) { 84 85 for ($nbr = 99; $nbr > 0; $nbr--) { 85 86 if ($astman->database_get("sysspeeddials",sprintf("%02d",$nbr))===false) { … … 88 89 } 89 90 } 91 } 90 92 } 91 93 $astman->database_put("cidname",$number, '"'.$name.'"'); modules/branches/2.5/phonebook/page.phonebook.php
r4767 r5892 150 150 <tr><td colspan="4"><h5><?php echo _("Add or replace entry") ?><hr></h5></td></tr> 151 151 152 153 <tr> 154 <td><a href="#" class="info"><?php echo _("Name:")?><span><?php echo _("Enter the name")?></span></a></td> 155 <td><input type="text" name="name"></td> 156 </tr> 157 152 158 <tr> 153 159 <td><a href="#" class="info"><?php echo _("Number:")?> … … 155 161 <td><input type="text" name="number"></td> 156 162 </tr> 157 158 <tr> 159 <td><a href="#" class="info"><?php echo _("Name:")?><span><?php echo _("Enter the name")?></span></a></td> 160 <td><input type="text" name="name"></td> 161 </tr> 162 163 163 164 <tr> 164 165 <td><a href="#" class="info"><?php echo _("Speed dial code:")?><span><?php echo _("Enter a speed dial code<br/>Speeddial module is required to use speeddial codes")?></span></a></td> 165 166 <td><input type="text" name="speeddial"></td> 166 167 </tr> 167 168 <tr> 169 <td colspan="2"><br><h6><input name="submit" type="submit" value="<?php echo _("Submit Changes")?>"></h6></td> 168 169 <tr> 170 <td><a href="#" class="info"><?php echo _("Set Speed Dial?"); ?><span><?php echo _("Check to have a speed dial created automaticaly for this number"); ?></span></a></td> 171 <td><input type="checkbox" name="needsd" value="" CHECKED <?php echo $thisItem['needsd'] ?> /></td> 172 </tr> 173 174 <tr> 175 <td colspan="2"><br><h6><input name="submit" type="submit" value="<?php echo _("Submit Changes")?>"></h6> 170 176 </tr> 171 177 </form> … … 196 202 197 203 var theForm = document.edit; 198 theForm.n umber.focus();204 theForm.name.focus(); 199 205 200 206 function edit_onsubmit() {
