| | |
| | | |
| | | if($configNum>0){ |
| | | |
| | | $templatesM->upInfo(array('name'=>trim($_POST['name'])),array('content'=>$content,'title'=>trim($_POST['title']))); |
| | | $templatesM->upInfo(array('name' => trim($_POST['name'])), array('content' => $content, 'template_id' => $_POST['template_id'], 'title' => trim($_POST['title']))); |
| | | |
| | | }else{ |
| | | |
| | | $templatesM->addInfo(array('name'=>trim($_POST['name']),'content'=>$content,'title'=>trim($_POST['title']))); |
| | | $templatesM->addInfo(array('name' => trim($_POST['name']), 'content' => $content, 'template_id' => $_POST['template_id'], 'title' => trim($_POST['title']))); |
| | | |
| | | } |
| | | |
| | |
| | | } |
| | | |
| | | |
| | | echo json_encode($returnArr);die; |
| | | echo json_encode($returnArr); |
| | | die; |
| | | } |
| | | |
| | | |