23 if ( $soxId !=
"-1" && isset( $soxId)) {
24 $oOrder =
oxNew(
"oxorder" );
25 $oOrder->load( $soxId);
28 $oRems =
oxNew(
"oxlist" );
29 $oRems->init(
"oxremark");
30 $sSelect =
"select * from oxremark where oxparentid=".oxDb::getDb()->quote( $oOrder->oxorder__oxuserid->value ).
" order by oxcreate desc";
31 $oRems->selectString( $sSelect );
32 foreach ($oRems as $key => $val) {
33 if ( $val->oxremark__oxid->value == $sRemoxId) {
40 $this->_aViewData[
"allremark"] = $oRems;
42 if ( isset( $sRemoxId)) {
43 $oRemark =
oxNew(
"oxRemark" );
44 $oRemark->load( $sRemoxId);
45 $this->_aViewData[
"remarktext"] = $oRemark->oxremark__oxtext->value;
46 $this->_aViewData[
"remarkheader"] = $oRemark->oxremark__oxheader->value;
50 return "order_remark.tpl";
62 $oOrder =
oxNew(
"oxorder" );
63 if ( $oOrder->load( $this->getEditObjectId() ) ) {
64 $oRemark =
oxNew(
"oxremark" );
69 $oRemark->oxremark__oxtype =
new oxField(
"r" );
70 $oRemark->oxremark__oxparentid =
new oxField( $oOrder->oxorder__oxuserid->value );
80 public function delete()
82 $oRemark =
oxNew(
"oxRemark" );