| 145 | | if ($extdisplay) { |
|---|
| 146 | | //create variables for the selected route's settings |
|---|
| 147 | | $extarray=explode('/',$extdisplay,2); |
|---|
| 148 | | $ininfo=core_did_get($extarray[0],$extarray[1]); |
|---|
| 149 | | if (is_array($ininfo)) { |
|---|
| 150 | | extract($ininfo); |
|---|
| 151 | | } |
|---|
| | 145 | if ($extdisplay) { |
|---|
| | 146 | //create variables for the selected route's settings |
|---|
| | 147 | $extarray=explode('/',$extdisplay,2); |
|---|
| | 148 | $ininfo=core_did_get($extarray[0],$extarray[1]); |
|---|
| | 149 | if (is_array($ininfo) && !empty($ininfo)) { |
|---|
| | 150 | extract($ininfo); |
|---|
| | 151 | $delete_url = true; |
|---|
| 155 | | $delURL = $_SERVER['PHP_SELF'].'?'.$_SERVER['QUERY_STRING']."&action=delIncoming&didfilter=$didfilter&rnavsort=$rnavsort"; |
|---|
| 156 | | $tlabel = sprintf(_("Delete Route %s"),!empty($description)?$description:$extdisplay); |
|---|
| 157 | | $label = '<span><img width="16" height="16" border="0" title="'.$tlabel.'" alt="" src="images/core_delete.png"/> '.$tlabel.'</span>'; |
|---|
| 158 | | echo "<p><a href=".$delURL.">".$label."</a></p>"; |
|---|
| | 155 | } else { |
|---|
| | 156 | $extension = $extarray[0]; |
|---|
| | 157 | $cidnum = $extarray[1]; |
|---|
| | 158 | $delete_url = false; |
|---|
| | 159 | $extdisplay = ''; |
|---|
| | 160 | ?> |
|---|
| | 161 | <h2><?php echo _("Add Incoming Route")?></h2> |
|---|
| | 162 | <?php |
|---|
| | 163 | } |
|---|
| | 164 | |
|---|
| | 165 | if ($delete_url) { |
|---|
| | 166 | $delURL = $_SERVER['PHP_SELF'].'?'.$_SERVER['QUERY_STRING']."&action=delIncoming&didfilter=$didfilter&rnavsort=$rnavsort"; |
|---|
| | 167 | $tlabel = sprintf(_("Delete Route %s"),!empty($description)?$description:$extdisplay); |
|---|
| | 168 | $label = '<span><img width="16" height="16" border="0" title="'.$tlabel.'" alt="" src="images/core_delete.png"/> '.$tlabel.'</span>'; |
|---|
| | 169 | echo "<p><a href=".$delURL.">".$label."</a></p>"; |
|---|
| | 170 | } |
|---|